type TPixelAccessMode = (pamUnsafe, pamSafe, pamWrap);
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.
TCustomBitmap32.WrapMode, TKernelResampler, TKernelResampler.GetSample, SetBorderTransparent
Copyright ©2000-2016 Alex Denisov and the Graphics32 Team - Graphics32 v2.0 - Built on 25-April-2017