Gets the specified RasterImage from the output 3D volume.
public static RasterImage GetRenderedImage(string id,double x,double y,int width,int height,int scaleFactor,string effect,int action,float sensitivity,float ratio)
id
The 3D object id.
x
x mouse coordinate
y
y mouse coordinate
width
The width of the 3D volume display window
height
The height of the 3D volume display window
scaleFactor
The resize factor that is used to render a low resolution image.
effect
Indicates which effect to apply to the 3D volume. The following values are possible:
| Value | Member | Description |
|---|---|---|
| 0 | Offset | Translate the volume. |
| 1 | Scale | Zoom the scale in or out. |
| 2 | Window Level | Window level the volume. |
| 3 | Rotate 3D Object | Rotate the volume. |
action
Indicates which action to apply to the volume. The following values are possible::
| Member | Description |
|---|---|
| Get | No action, just retrieve the current volume output image. |
| Down | Apply mouse down and then retrieve the volume output image. |
| Move | Apply mouse move using the x and y coordinates, and then retrieve the volume output image. |
| Up | Apply mouse up and then retrieve the volume output image. |
sensitivity
The mouse sensitivity.
ratio
The mouse scaling ratio.
A RasterImage containing the output image that contains the rendered 3D volume.
GetRenderedImage does two things: it applies various actions, and then it retrieves the rendered volume as a raster image.