ImageGenerateROIMask does not work for rotated shape

In Igor 8, it seems that ImageGenerateROIMask does not work for rotated object. For example, after drawing a rectangle and then rotate it by 45°, the resulting ROI mask generated by ImageGenerateROIMask is still the original rectangle instead of the 45°-rotated one.

Just a quick suggestion for a workaround.  Instead of rotating rectangles use a pair of waves to display the region of interest.  You can simply execute e.g.,

GraphWavedraw/w=graph0 /L/T yyy,xxx  // assuming you started from NewImage

Next, you can click on the graph where you want the vertices of the polygon until you close the polygon.  When the polygon is closed you can use the ImageBoundaryToMask operation to convert the pair of waves into a 2D mask wave.