C# Class Aspose.Pdf.Examples.CSharp.AsposePDFFacades.TechnicalArticles.WinAPIIndexBitmapConverter

Inheritance: IIndexBitmapConverter
Mostra file Open project: aspose-pdf/Aspose.Pdf-for-.NET

Public Methods

Method Description
Get1BppImage ( Bitmap src ) : Bitmap
Get4BppImage ( Bitmap src ) : Bitmap
Get8BppImage ( Bitmap src ) : Bitmap

Private Methods

Method Description
BitBlt ( IntPtr hdcDst, int xDst, int yDst, int w, int h, IntPtr hdcSrc, int xSrc, int ySrc, int rop ) : int
CopyToBpp ( System b, int bpp ) : Bitmap

Copies a bitmap into a 1bpp/8bpp bitmap of the same dimensions, fast

CreateCompatibleDC ( IntPtr hdc ) : IntPtr
CreateDIBSection ( IntPtr hdc, BITMAPINFO &bmi, uint Usage, IntPtr &bits, IntPtr hSection, uint dwOffset ) : IntPtr
DeleteDC ( IntPtr hdc ) : int
DeleteObject ( IntPtr hObject ) : bool
GetDC ( IntPtr hwnd ) : IntPtr
MAKERGB ( int r, int g, int b ) : uint
ReleaseDC ( IntPtr hwnd, IntPtr hdc ) : int
SelectObject ( IntPtr hdc, IntPtr hgdiobj ) : IntPtr

Method Details

Get1BppImage() public method

public Get1BppImage ( Bitmap src ) : Bitmap
src System.Drawing.Bitmap
return System.Drawing.Bitmap

Get4BppImage() public method

public Get4BppImage ( Bitmap src ) : Bitmap
src System.Drawing.Bitmap
return System.Drawing.Bitmap

Get8BppImage() public method

public Get8BppImage ( Bitmap src ) : Bitmap
src System.Drawing.Bitmap
return System.Drawing.Bitmap