GdPicture.NET Reference Guide
DrawGdPictureImageSkewing Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : DrawGdPictureImageSkewing Method
GdPicture Image Identifier. Specifies the image to be drawn from.
GdPicture Image Identifier. specifies the image to draw to.
Left pixel destination of the first point.
Top pixel destination of the first point.
Left pixel destination of the second point.
Top pixel destination of the second point.
Left pixel destination of the third point.
Left pixel destination of the third point.
A member of the Drawing2D.InterPolationMode enumeration.
Set to True to apply the Antialiasing algorithm else False.
Draws a skewed GdPicture image from 3 points of co-ordinates into another GdPicture image.
Syntax
'Declaration
 
Public Function DrawGdPictureImageSkewing( _
   ByVal SrcImage As Integer, _
   ByVal DstImage As Integer, _
   ByVal DstLeft1 As Integer, _
   ByVal DstTop1 As Integer, _
   ByVal DstLeft2 As Integer, _
   ByVal DstTop2 As Integer, _
   ByVal DstLeft3 As Integer, _
   ByVal DstTop3 As Integer, _
   ByVal InterpolationMode As InterpolationMode, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus

Parameters

SrcImage
GdPicture Image Identifier. Specifies the image to be drawn from.
DstImage
GdPicture Image Identifier. specifies the image to draw to.
DstLeft1
Left pixel destination of the first point.
DstTop1
Top pixel destination of the first point.
DstLeft2
Left pixel destination of the second point.
DstTop2
Top pixel destination of the second point.
DstLeft3
Left pixel destination of the third point.
DstTop3
Left pixel destination of the third point.
InterpolationMode
A member of the Drawing2D.InterPolationMode enumeration.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Example
Copying one image onto a section of another using skewing and applying antialiasing.
Dim oGdPictureImaging As New GdPictureImaging
Dim SrcImage As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("srcImg.png")
Dim DstImage As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("dstImg.png")
oGdPictureImaging.DrawGdPictureImageSkewing(SrcImage, DstImage,0, 0, 700, 0, 700, 700, Drawing2D.InterpolationMode.Bicubic, True)
oGdPictureImaging.SaveAsPNG(DstImage, "output.png")
oGdPictureImaging.ReleaseGdPictureImage(DstImage)
oGdPictureImaging.ReleaseGdPictureImage(SrcImage)
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members