You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing (GdPicture Image) > DrawGdPictureImageClipped Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.DrawGdPictureImageClipped Method

Draws a clipped GdPicture image from several points of co-ordinates into another GdPicture image.

C#
public GdPictureStatus DrawGdPictureImageClipped(
    int SrcImage, 
    int DstImage, 
    System.Drawing.Point arPoints
);
Visual Basic
Public Function DrawGdPictureImageClipped(
    ByVal SrcImage As Integer, 
    ByVal DstImage As Integer, 
    ByVal arPoints() As System.Drawing.Point
) As GdPictureStatus
Parameters
Parameters 
Description 
SrcImage 
GdPicture Image Identifier. Specifies the image to be drawn.  
DstImage 
GdPicture Image Identifier. specifies the image to draw.  
arPoints 
Array of System.Drawing.Point that specifies the coordinates.  
Returns

A member of the GdPictureStatus enumeration.

draw image1.jpg into image2.jpg to a region defined by 3 points a(0, 0) b(700, 0) and c(700, 700)

Dim ImageID1 As Integer, ImageID2 As Integer
Dim arPoints(0 To 2) As System.Drawing.Point
Dim m_Stat As GdPictureStatus
 
ImageID1 = oGdPictureImaging.CreateGdPictureImageFromFile("image1.jpg")
ImageID2 = oGdPictureImaging.CreateGdPictureImageFromFile("image2.jpg")
 
arPoints(0).X = 0
arPoints(0).Y = 0
arPoints(1).X = 700
arPoints(1).Y = 0
arPoints(2).X = 700
arPoints(2).Y = 700
 
m_Stat = oGdPictureImaging.DrawGdPictureImageClipped(ImageID1, ImageID2, arPoints)
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.