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
Syntaxpublic void DrawImage(
Image Image,
Vector2 Position,
float Width,
float Height,
float Rotation = 0f,
short Transparency = 50,
bool Store = false
)
Public Sub DrawImage (
Image As Image,
Position As Vector2,
Width As Single,
Height As Single,
Optional Rotation As Single = 0F,
Optional Transparency As Short = 50,
Optional Store As Boolean = false
)
public:
void DrawImage(
Image^ Image,
Vector2 Position,
float Width,
float Height,
float Rotation = 0f,
short Transparency = 50,
bool Store = false
)
member DrawImage :
Image : Image *
Position : Vector2 *
Width : float32 *
Height : float32 *
?Rotation : float32 *
?Transparency : int16 *
?Store : bool
(* Defaults:
let _Rotation = defaultArg Rotation 0f
let _Transparency = defaultArg Transparency 50
let _Store = defaultArg Store false
*)
-> unit
METHOD DrawImage(
Image AS Image,
Position AS Vector2,
Width AS REAL4,
Height AS REAL4,
Rotation AS REAL4 := 0f,
Transparency AS SHORT := 50,
Store AS LOGIC := FALSE
) AS VOID
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.
RemarksThis 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