'Declaration
Public Function DrawImage( _ ByVal ImageResName As String, _ ByVal DstX As Single, _ ByVal DstY As Single, _ ByVal Width As Single, _ ByVal Height As Single _ ) As GdPictureStatus
public GdPictureStatus DrawImage( string ImageResName, float DstX, float DstY, float Width, float Height )
public function DrawImage( ImageResName: String; DstX: Single; DstY: Single; Width: Single; Height: Single ): GdPictureStatus;
public function DrawImage( ImageResName : String, DstX : float, DstY : float, Width : float, Height : float ) : GdPictureStatus;
public: GdPictureStatus DrawImage( string* ImageResName, float DstX, float DstY, float Width, float Height )
public: GdPictureStatus DrawImage( String^ ImageResName, float DstX, float DstY, float Width, float Height )
Parameters
- ImageResName
- The image resource name of the required image as a string.
You can obtain this name using one of these methods: %AddImageFromBitmap(Bitmap, bool, bool)% , GdPicturePDF.AddImageFromGdPictureImage, GdPicturePDF.GetPageImageResName or any of the AddJpegImageFrom...() methods. For further assistance, please see the Images section of the GdPicturePDF class in the Reference Guide.
- DstX
- The horizontal (X) coordinate of the bottom left point of the destination area, where the image is to be drawn, expressed in the current units specified by the SetMeasurementUnit method, related to the currently selected page.
- DstY
- The vertical (Y) coordinate of the bottom left point of the destination area, where the image is to be drawn, expressed in the current units specified by the SetMeasurementUnit method, related to the currently selected page.
- Width
- The width of the destination area, expressed in the current units specified by the SetMeasurementUnit method.
- Height
- The height of the destination area, expressed in the current units specified by the SetMeasurementUnit method.
Return Value
We strongly recommend always checking this status first.