You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Creating, Loading & Closing GdPicture Image > CreateClonedGdPictureImageArea Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.CreateClonedGdPictureImageArea Method

Creates a new GdPicture Image from the area of another GdPicture Image.

C#
public int CreateClonedGdPictureImageArea(
    int ImageID, 
    int SrcLeft, 
    int SrcTop, 
    int Width, 
    int Height
);
Visual Basic
Public Function CreateClonedGdPictureImageArea(
    ByVal ImageID As Integer, 
    ByVal SrcLeft As Integer, 
    ByVal SrcTop As Integer, 
    ByVal Width As Integer, 
    ByVal Height As Integer
) As Integer
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier. The image from which we will clone the area.  
SrcLeft 
Left pixel source of the area to clone.  
SrcTop 
Top pixel source of the area to clone.  
Width 
Width of the area to clone.  
Height 
Height of the area to clone.  
Returns

0: The image could not created. Use the GetStat() function to determine the reason this function failed. 

Non-zero: GdPicture Image Identifier. The created image.

If the image to clone is a multibitmap image, this function will clone only the selected bitmap and will create a single frame image.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.