Declarations ​
procedure Rasterize(Dst: TCustomBitmap32); overload;
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect); overload;
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect; const CombineInfo: TCombineInfo); overload;
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect; Src: TCustomBitmap32); overload;Overload Details
Overload 1 ​
procedure Rasterize(Dst: TCustomBitmap32); overload;Rasterizes the entire bounds rectangle of the destination bitmap.
| Parameter | Type | Description |
|---|---|---|
Dst | TCustomBitmap32 | Target bitmap into which sampled pixel colors are rendered. |
Overload 2 ​
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect); overload;Rasterizes a specific sub-rectangle of the destination bitmap.
| Parameter | Type | Description |
|---|---|---|
Dst | TCustomBitmap32 | Target bitmap into which sampled pixel colors are rendered. |
DstRect | TRect | Destination rectangle bounding the pixel area to sample and render. |
Overload 3 ​
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect; const CombineInfo: TCombineInfo); overload;Rasterizes a sub-rectangle using explicitly specified pixel combination settings.
| Parameter | Type | Description |
|---|---|---|
Dst | TCustomBitmap32 | Target bitmap into which sampled pixel colors are rendered. |
DstRect | TRect | Destination rectangle bounding the pixel area to sample and render. |
CombineInfo | TCombineInfo | Record specifying draw mode, combine mode, master alpha, and custom callbacks. |
Overload 4 ​
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect; Src: TCustomBitmap32); overload;Rasterizes a sub-rectangle using pixel combination settings extracted from a source bitmap.
| Parameter | Type | Description |
|---|---|---|
Dst | TCustomBitmap32 | Target bitmap into which sampled pixel colors are rendered. |
DstRect | TRect | Destination rectangle bounding the pixel area to sample and render. |
Src | TCustomBitmap32 | Source bitmap whose drawing modes and alpha settings are used during rendering. |
Description ​
Rasterize initiates rendering of the attached Sampler onto the destination bitmap Dst.
Before sampling, Rasterize calls FSampler.PrepareSampling to allow the sampler to initialize lookup structures or pre-calculate transforms. It then computes the clipped intersection rectangle between DstRect, Dst.BoundsRect, and FSampler.GetSampleBounds before delegating pixel generation to DoRasterize. After rendering completes, FSampler.FinalizeSampling is invoked.