C# 클래스 Microsoft.DwayneNeed.Media.Imaging.GrayscaleBitmap

The GrayscaleBitmap class processes a source and converts the image to a grayscale color scheme.
For simplicity, we only process Bgr32 or Bgra32 formatted bitmaps, anything else is converted to one of those formats. Bgr32 and Bgra32 share the same memory layout for the RGB channels.
상속: ChainedBitmap
파일 보기 프로젝트 열기: cplotts/WPFSLBlendModeFx

보호된 메소드들

메소드 설명
CopyPixelsCore ( System.Windows.Int32Rect sourceRect, int stride, int bufferSize, IntPtr buffer ) : void

Requests pixels from the ChainedCustomBitmapSource.

Converts the contents of the source bitmap into a grayscale color scheme. The algorithm is taken from here: http://en.wikipedia.org/wiki/Grayscale

메소드 상세

CopyPixelsCore() 보호된 메소드

Requests pixels from the ChainedCustomBitmapSource.
Converts the contents of the source bitmap into a grayscale color scheme. The algorithm is taken from here: http://en.wikipedia.org/wiki/Grayscale
protected CopyPixelsCore ( System.Windows.Int32Rect sourceRect, int stride, int bufferSize, IntPtr buffer ) : void
sourceRect System.Windows.Int32Rect /// The rectangle of pixels being requested. ///
stride int /// The stride of the destination buffer. ///
bufferSize int /// The size of the destination buffer. ///
buffer System.IntPtr /// The destination buffer. ///
리턴 void