'Declaration
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
public int CreateClonedGdPictureImageArea( int ImageID, int SrcLeft, int SrcTop, int Width, int Height )
public function CreateClonedGdPictureImageArea( ImageID: Integer; SrcLeft: Integer; SrcTop: Integer; Width: Integer; Height: Integer ): Integer;
public function CreateClonedGdPictureImageArea( ImageID : int, SrcLeft : int, SrcTop : int, Width : int, Height : int ) : int;
Parameters
- ImageID
- A unique image identifier of the GdPicture image representing the source image, from which the specified area will be cloned.
- SrcLeft
- The horizontal (X) coordinate of the top left position of the required area to clone, in pixels.
- SrcTop
- The vertical (Y) coordinate of the top left position of the required area to clone, in pixels.
- Width
- The width of the required area to clone, in pixels.
- Height
- The height of the required area to clone, in pixels.
Return Value
A unique image identifier of the GdPicture image representing the newly created image. The returned value is non-zero if the image is successfully created. Please first of all use the GdPictureImaging.GetStat method to determine if this method has been successful.
Be aware that you need to release the image with the GdPictureImaging.ReleaseGdPictureImage method after being used.