GdPicture.NET Reference Guide
DrawGdPictureImage Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : DrawGdPictureImage Method
GdPicture Image Identifier. Specifies the image to be drawn from.
GdPicture Image Identifier. specifies the image to draw to.
Specifies the x-coordinate in pixels of the upper-left corner of the destination rectangle at which to draw the image.
Specifies the y-coordinate in pixels of the upper-left corner of the destination rectangle at which to draw the image.
Specifies the width, in pixels, of the destination rectangle at which to draw the image.
Specifies the height, in pixels, of the destination rectangle at which to draw the image.
A member of the Drawing2D.InterPolationMode enumeration.
Draws a GdPicture image into another GdPicture image.
Syntax

Parameters

SrcImage
GdPicture Image Identifier. Specifies the image to be drawn from.
DstImage
GdPicture Image Identifier. specifies the image to draw to.
DstLeft
Specifies the x-coordinate in pixels of the upper-left corner of the destination rectangle at which to draw the image.
DstTop
Specifies the y-coordinate in pixels of the upper-left corner of the destination rectangle at which to draw the image.
DstWidth
Specifies the width, in pixels, of the destination rectangle at which to draw the image.
DstHeight
Specifies the height, in pixels, of the destination rectangle at which to draw the image.
InterpolationMode
A member of the Drawing2D.InterPolationMode enumeration.

Return Value

A member of the GdPictureStatus enumeration.
Example
Copying one image onto a section of another.
Dim oGdPictureImaging As New GdPictureImaging
Dim SrcImage As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("srcImg.png")
Dim DstImage As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("dstImg.png")
oGdPictureImaging.DrawGdPictureImage(SrcImage, DstImage, 0, 0, 200, 200, System.Drawing.Drawing2D.InterpolationMode.Bicubic)
oGdPictureImaging.SaveAsPNG(DstImage, "output.png")
oGdPictureImaging.ReleaseGdPictureImage(DstImage)
oGdPictureImaging.ReleaseGdPictureImage(SrcImage)
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
DrawGdPictureImageRect Method