Click or drag to resize

DXFReaderNETControlDrawImage Method (Image, Vector2, Single, Single, Single, Int16, Boolean)

Draws an image on the control.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public void DrawImage(
	Image Image,
	Vector2 Position,
	float Width,
	float Height,
	float Rotation = 0f,
	short Transparency = 50,
	bool Store = false
)

Parameters

Image
Type: System.DrawingImage
The bitmap image.
Position
Type: DXFReaderNETVector2
The position of the image.
Width
Type: SystemSingle
The width of the image.
Height
Type: SystemSingle
The height of the image.
Rotation (Optional)
Type: SystemSingle
The rotation in degree of the image about the position point.
Transparency (Optional)
Type: SystemInt16
Accepted transparency values range from 0 to 90. Default value = 50.
Store (Optional)
Type: SystemBoolean
If set to true the element is drawn again after e refresh.
Remarks
This method adds an image to the drawing without modifying the drawing database. The image is drawn on background. Can be used for for temporary visualizations, such as highlighting or previewing elements, without making permanent changes to the DXF data.
See Also