C# Класс System.Drawing.Bitmap

Наследование: Image
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Bitmap ( Image image ) : AppKit

Initializes a new instance of the System.Drawing.Bitmap class from the specified existing image..

Bitmap ( Image original, Size newSize ) : AppKit
Bitmap ( Image original, int width, int height ) : AppKit
Bitmap ( Stream stream, bool useIcm ) : AppKit
Bitmap ( int width, int height ) : AppKit
Bitmap ( int width, int height, PixelFormat format ) : AppKit
Bitmap ( string filename ) : AppKit
Clone ( Rectangle rect, PixelFormat pixelFormat ) : Bitmap

Creates a copy of the section of this Bitmap defined by Rectangle structure and with a specified PixelFormat enumeration.

GetPixel ( int x, int y ) : Color
LockBits ( RectangleF rect, ImageLockMode flags, PixelFormat pixelFormat ) : BitmapData
MakeTransparent ( ) : void
MakeTransparent ( Color transparentColor ) : void
Save ( Stream stream, ImageFormat format ) : void
Save ( string path ) : void
Save ( string path, ImageFormat format ) : void
SetPixel ( int x, int y, Color color ) : void
SetResolution ( float xDpi, float yDpi ) : void
UnlockBits ( BitmapData data ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
Convert_BGRA_8888_To_P_RGBA_8888 ( IntPtr source, IntPtr destination, int scanLength ) : void
Convert_BGR_888_To_P_RGBA_8888 ( IntPtr source, IntPtr destination, int scanLength ) : void
Convert_P_RGBA_8888_To_BGRA_8888 ( byte &scanLine, byte source ) : void
Convert_P_RGBA_8888_To_BGR_888 ( byte &scanLine, byte source ) : void
CreateCompatibleBitmapContext ( int width, int height, PixelFormat pixelFormat ) : CGBitmapContext
CreateCompatibleBitmapContext ( int width, int height, PixelFormat pixelFormat, IntPtr pixelData ) : CGBitmapContext
GetBestSupportedFormat ( PixelFormat pixelFormat ) : PixelFormat
GetRenderableContext ( ) : CGBitmapContext
GuessPixelFormat ( ) : void
InitWithCGImage ( CGImage image ) : void
InitializeImageFrame ( int frame ) : void
MakeSureWeHaveAnAlphaChannel ( ) : void
RectangularCopy ( byte dstScanLine, byte srcScanLine, int dstStride, int srcStride, int width, int height, int sizeOfPixel ) : void
RotateFlip ( RotateFlipType rotateFlipType ) : void
SetImageInformation ( int frame ) : void
flipImageYAxis ( IntPtr source, IntPtr dest, int stride, int height, int size ) : void
flipImageYAxis ( int width, int height, int size ) : void
memcpy ( byte dest, byte src, int count ) : void

Описание методов

Bitmap() публичный метод

Initializes a new instance of the System.Drawing.Bitmap class from the specified existing image..
public Bitmap ( Image image ) : AppKit
image Image Image.
Результат AppKit

Bitmap() публичный метод

public Bitmap ( Image original, Size newSize ) : AppKit
original Image
newSize Size
Результат AppKit

Bitmap() публичный метод

public Bitmap ( Image original, int width, int height ) : AppKit
original Image
width int
height int
Результат AppKit

Bitmap() публичный метод

public Bitmap ( Stream stream, bool useIcm ) : AppKit
stream System.IO.Stream
useIcm bool
Результат AppKit

Bitmap() публичный метод

public Bitmap ( int width, int height ) : AppKit
width int
height int
Результат AppKit

Bitmap() публичный метод

public Bitmap ( int width, int height, PixelFormat format ) : AppKit
width int
height int
format PixelFormat
Результат AppKit

Bitmap() публичный метод

public Bitmap ( string filename ) : AppKit
filename string
Результат AppKit

Clone() публичный метод

Creates a copy of the section of this Bitmap defined by Rectangle structure and with a specified PixelFormat enumeration.
public Clone ( Rectangle rect, PixelFormat pixelFormat ) : Bitmap
rect Rectangle Rect.
pixelFormat PixelFormat Pixel format.
Результат Bitmap

Dispose() защищенный метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetPixel() публичный метод

public GetPixel ( int x, int y ) : Color
x int
y int
Результат Color

LockBits() публичный метод

public LockBits ( RectangleF rect, ImageLockMode flags, PixelFormat pixelFormat ) : BitmapData
rect RectangleF
flags ImageLockMode
pixelFormat PixelFormat
Результат System.Drawing.Imaging.BitmapData

MakeTransparent() публичный метод

public MakeTransparent ( ) : void
Результат void

MakeTransparent() публичный метод

public MakeTransparent ( Color transparentColor ) : void
transparentColor Color
Результат void

Save() публичный метод

public Save ( Stream stream, ImageFormat format ) : void
stream Stream
format ImageFormat
Результат void

Save() публичный метод

public Save ( string path ) : void
path string
Результат void

Save() публичный метод

public Save ( string path, ImageFormat format ) : void
path string
format ImageFormat
Результат void

SetPixel() публичный метод

public SetPixel ( int x, int y, Color color ) : void
x int
y int
color Color
Результат void

SetResolution() публичный метод

public SetResolution ( float xDpi, float yDpi ) : void
xDpi float
yDpi float
Результат void

UnlockBits() публичный метод

public UnlockBits ( BitmapData data ) : void
data BitmapData
Результат void