ImageOutput()

Syntax

OutputID = ImageOutput(#Image)
Description
Returns the OutputID of the image to perform 2D rendering operation on it. Alternatively, the ImageVectorOutput() command can be used to perform vector drawing on the image. If the image is multi-frame, the current frame will be used.

Parameters

#Image The image to draw on.

Return value

Returns the output ID or zero if drawing is not possible. This value should be passed directly to the StartDrawing() function to start the drawing operation. The return-value is valid only for one drawing operation and cannot be reused.

Example

  StartDrawing(ImageOutput(#Image))
    ; do some drawing stuff here...
  StopDrawing()

Remarks

This command cannot be used with loaded icon files (*.ico).

See Also

StartDrawing(), ImageVectorOutput()

Supported OS

All

<- ImageID() - Image Index - ImageVectorOutput() ->