TPixelAccessMode

Graphics32

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

TKernelResampler.GetSample, SetBorderTransparent, TKernelResampler, TBitmap32.WrapMode