C# Class QuickFont.QBitmap

Afficher le fichier Open project: Pireax/neovim.cs Class Usage Examples

Méthodes publiques

Свойство Type Description
bitmap System.Drawing.Bitmap
bitmapData System.Drawing.Imaging.BitmapData

Méthodes publiques

Méthode Description
Blit ( BitmapData source, BitmapData target, Rectangle sourceRect, int px, int py ) : void

Blits from source to target. Both source and target must be 32-bit

Blit ( BitmapData source, BitmapData target, int srcPx, int srcPy, int srcW, int srcH, int destX, int destY ) : void

Blits from source to target. Both source and target must be 32-bit

BlitMask ( BitmapData source, BitmapData target, int srcPx, int srcPy, int srcW, int srcH, int px, int py ) : void

Blits a block of a bitmap data from source to destination, using the luminance of the source to determine the alpha of the target. Source must be 24-bit, target must be 32-bit.

BlurAlpha ( int radius, int passes ) : void
Clear32 ( byte r, byte g, byte b, byte a ) : void
Colour32 ( byte r, byte g, byte b ) : void

Sets colour without touching alpha values

DownScale32 ( int newWidth, int newHeight ) : void
EmptyAlphaPixel ( BitmapData bitmapData, int px, int py, byte alphaEmptyPixelTolerance ) : bool

Returns try if the given pixel is empty (i.e. alpha is zero)

EmptyPixel ( BitmapData bitmapData, int px, int py ) : bool

Returns try if the given pixel is empty (i.e. black)

Free ( ) : void
GetAlpha32 ( int px, int py, byte &a ) : void
GetPixel32 ( int px, int py, byte &r, byte &g, byte &b, byte &a ) : void
PutAlpha32 ( int px, int py, byte a ) : void
PutPixel32 ( int px, int py, byte r, byte g, byte b, byte a ) : void
QBitmap ( Bitmap bitmap ) : System
QBitmap ( string filePath ) : System

Private Methods

Méthode Description
LockBits ( Bitmap bitmap ) : void

Method Details

Blit() public static méthode

Blits from source to target. Both source and target must be 32-bit
public static Blit ( BitmapData source, BitmapData target, Rectangle sourceRect, int px, int py ) : void
source System.Drawing.Imaging.BitmapData
target System.Drawing.Imaging.BitmapData
sourceRect System.Drawing.Rectangle
px int
py int
Résultat void

Blit() public static méthode

Blits from source to target. Both source and target must be 32-bit
public static Blit ( BitmapData source, BitmapData target, int srcPx, int srcPy, int srcW, int srcH, int destX, int destY ) : void
source System.Drawing.Imaging.BitmapData
target System.Drawing.Imaging.BitmapData
srcPx int
srcPy int
srcW int
srcH int
destX int
destY int
Résultat void

BlitMask() public static méthode

Blits a block of a bitmap data from source to destination, using the luminance of the source to determine the alpha of the target. Source must be 24-bit, target must be 32-bit.
public static BlitMask ( BitmapData source, BitmapData target, int srcPx, int srcPy, int srcW, int srcH, int px, int py ) : void
source System.Drawing.Imaging.BitmapData
target System.Drawing.Imaging.BitmapData
srcPx int
srcPy int
srcW int
srcH int
px int
py int
Résultat void

BlurAlpha() public méthode

public BlurAlpha ( int radius, int passes ) : void
radius int
passes int
Résultat void

Clear32() public méthode

public Clear32 ( byte r, byte g, byte b, byte a ) : void
r byte
g byte
b byte
a byte
Résultat void

Colour32() public méthode

Sets colour without touching alpha values
public Colour32 ( byte r, byte g, byte b ) : void
r byte
g byte
b byte
Résultat void

DownScale32() public méthode

public DownScale32 ( int newWidth, int newHeight ) : void
newWidth int
newHeight int
Résultat void

EmptyAlphaPixel() public static méthode

Returns try if the given pixel is empty (i.e. alpha is zero)
public static EmptyAlphaPixel ( BitmapData bitmapData, int px, int py, byte alphaEmptyPixelTolerance ) : bool
bitmapData System.Drawing.Imaging.BitmapData
px int
py int
alphaEmptyPixelTolerance byte
Résultat bool

EmptyPixel() public static méthode

Returns try if the given pixel is empty (i.e. black)
public static EmptyPixel ( BitmapData bitmapData, int px, int py ) : bool
bitmapData System.Drawing.Imaging.BitmapData
px int
py int
Résultat bool

Free() public méthode

public Free ( ) : void
Résultat void

GetAlpha32() public méthode

public GetAlpha32 ( int px, int py, byte &a ) : void
px int
py int
a byte
Résultat void

GetPixel32() public méthode

public GetPixel32 ( int px, int py, byte &r, byte &g, byte &b, byte &a ) : void
px int
py int
r byte
g byte
b byte
a byte
Résultat void

PutAlpha32() public méthode

public PutAlpha32 ( int px, int py, byte a ) : void
px int
py int
a byte
Résultat void

PutPixel32() public méthode

public PutPixel32 ( int px, int py, byte r, byte g, byte b, byte a ) : void
px int
py int
r byte
g byte
b byte
a byte
Résultat void

QBitmap() public méthode

public QBitmap ( Bitmap bitmap ) : System
bitmap System.Drawing.Bitmap
Résultat System

QBitmap() public méthode

public QBitmap ( string filePath ) : System
filePath string
Résultat System

Property Details

bitmap public_oe property

public Bitmap,System.Drawing bitmap
Résultat System.Drawing.Bitmap

bitmapData public_oe property

public BitmapData,System.Drawing.Imaging bitmapData
Résultat System.Drawing.Imaging.BitmapData