TPixelAccessMode
type TPixelAccessMode = (pamUnsafe, pamSafe, pamWrap);
Description
TPixelAccessMode determines how TKernelResampler handles pixels outside the bitmap boundary when invoking the GetSample method.
- pamUnsafe - No boundary checks are performed. This means that we will read from memory outside the bitmap, if coordinates outside the bitmap area are passed.
- pamSafe - If the coordinate is outside the clipping rectangle of the bitmap, then the bitmap's outer color will be returned.
- pamWrap - Coordinates will be wrapped using the current WrapMode and will be restricted to the clipping rectangle.
- pamTransparentEdge - If the coordinate is outside the clipping rectangle of the bitmap, then a transparent result is returned. Moreover edges are resampled as if there were transparent outer edges. This can be used to achieve antialiased edges when transforming bitmaps with opaque edges; The functionality is similar to SetBorderTransparent.
See Also
TCustomBitmap32.WrapMode, TKernelResampler, TKernelResampler.GetSample, SetBorderTransparent
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024