Creates or updates a LEADTOOLS image region using the specified GDI+ region data.
image
The source image.
xform
Leadtools.RasterRegionXForm object that LEADTOOLS uses to translate between display coordinates and image coordinates. If you specify null (Nothing in VB) for this parameter, the scalar fields default to 1, the offsets default to 0, and the view perspective defaults to the image view perspective.
data
A System.Drawing.Drawing2D.RegionData object that defines the region to add.
combineMode
The action to take regarding the existing image region, if one is defined.
To update an existing region, specify how the new region is to be combined with the existing one using the combineMode parameter. For more information, refer to Leadtools.RasterRegionCombineMode.
This method can be used to copy the region data from one RasterImage to another, using the GetGdiPlusRegionData method.
To get the region data as Windows API HRGN data, use GetGdiRegionData and AddGdiDataToRegion.
To get the region data as platform independent byte array, use RasterRegion.GetData and RasterRegion.SetData.
For more information, refer to Creating a Region.
For more information, refer to Saving A Region.
For more information, refer to Working with the Existing Region.
For more information refer to RasterImage and GDI/GDI+.
This example will use AddGdiPlusDataToRegion and GetGdiPlusRegionData to add an elliptical region to a Leadtools.RasterImage, gets the region as a GDI+ RegionData object then re-sets it in another image.
Products |
Support |
Feedback: AddGdiPlusDataToRegion Method - Leadtools.Drawing |
Introduction |
Help Version 19.0.2017.3.21
|