Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Rasterizers🞂TRasterizer🞂RasterizeMethod

TRasterizer.Rasterize

Executes sampling across the specified destination bitmap area and writes sampled colors into pixel memory.

Declarations ​

pascal
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 ​

pascal
procedure Rasterize(Dst: TCustomBitmap32); overload;

Rasterizes the entire bounds rectangle of the destination bitmap.

ParameterTypeDescription
DstTCustomBitmap32Target bitmap into which sampled pixel colors are rendered.

Overload 2 ​

pascal
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect); overload;

Rasterizes a specific sub-rectangle of the destination bitmap.

ParameterTypeDescription
DstTCustomBitmap32Target bitmap into which sampled pixel colors are rendered.
DstRectTRectDestination rectangle bounding the pixel area to sample and render.

Overload 3 ​

pascal
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect; const CombineInfo: TCombineInfo); overload;

Rasterizes a sub-rectangle using explicitly specified pixel combination settings.

ParameterTypeDescription
DstTCustomBitmap32Target bitmap into which sampled pixel colors are rendered.
DstRectTRectDestination rectangle bounding the pixel area to sample and render.
CombineInfoTCombineInfoRecord specifying draw mode, combine mode, master alpha, and custom callbacks.

Overload 4 ​

pascal
procedure Rasterize(Dst: TCustomBitmap32; const DstRect: TRect; Src: TCustomBitmap32); overload;

Rasterizes a sub-rectangle using pixel combination settings extracted from a source bitmap.

ParameterTypeDescription
DstTCustomBitmap32Target bitmap into which sampled pixel colors are rendered.
DstRectTRectDestination rectangle bounding the pixel area to sample and render.
SrcTCustomBitmap32Source 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.