'Declaration
Public Function CopyRegionToGdPictureImage( _ ByVal SrcLeft As Integer, _ ByVal SrcTop As Integer, _ ByVal Width As Integer, _ ByVal Height As Integer _ ) As Integer
public function CopyRegionToGdPictureImage( SrcLeft: Integer; SrcTop: Integer; Width: Integer; Height: Integer ): Integer;
Parameters
- SrcLeft
- The horizontal (X) coordinate (0-based) of the top left point, in pixels, of the copied region's rectangle, related to the current page.
- SrcTop
- The vertical (Y) coordinate (0-based) of the top left point, in pixels, of the copied region's rectangle, related to the current page.
- Width
- The width, in pixels, of the region's rectangle.
- Height
- The height, in pixels, of the region's rectangle.
Return Value
A unique image identifier of the newly created image referring to an associated GdPictureImage object. The GetStat method can be subsequently used to determine if this method has been successful.
Just to remind you that you need to release the image from the memory using the ReleaseGdPictureImage method after being used.