public ApplyInPlace ( |
||
image | Image to apply filter to. | |
rect | Image rectangle for processing by the filter. | |
return | void |
public void ApplyInPlace( Bitmap image, Rectangle rect )
{
// lock source bitmap data
BitmapData data = image.LockBits(
new Rectangle( 0, 0, image.Width, image.Height ),
ImageLockMode.ReadWrite, image.PixelFormat );
try
{
// apply the filter
ApplyInPlace( new UnmanagedImage( data ), rect );
}
finally
{
// unlock image
image.UnlockBits( data );
}
}
BaseInPlacePartialFilter::ApplyInPlace ( |
|
BaseInPlacePartialFilter::ApplyInPlace ( |
|
BaseInPlacePartialFilter::ApplyInPlace ( |
|
BaseInPlacePartialFilter::ApplyInPlace ( UnmanagedImage image ) : void | |
BaseInPlacePartialFilter::ApplyInPlace ( UnmanagedImage image, |