C# 클래스 QuickFont.JBitmap

A class for basic bitmap manipulation: clearing bitmaps, blitting from one bitmap to another etc. Generally methods in this class are quite slow and are only intended for pre-rendering. TODO : replace loops with block copies
파일 보기 프로젝트 열기: Pireax/neovim.cs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bitmap System.Drawing.Bitmap
bitmapData System.Drawing.Imaging.BitmapData
format JBitmapPixelFormat

공개 메소드들

메소드 설명
Blit ( JBitmap target, int px, int py ) : void
Blit ( JBitmap target, int srcPx, int srcPy, int srcW, int srcH, int px, int py ) : void
BlitAdditive ( JBitmap target, int px, int py, float strength ) : void

Additively blits onto the target. Only supported for 8bbp.

BlitAdditive24 ( JBitmap target, int px, int py, float strength ) : void

Additively blits onto the target. Supports just 24bpp (source and target)

BlitMax ( JBitmap target, int px, int py, float strength ) : void
BlitOLD ( JBitmap target, int px, int py ) : void

Blits this bitmap onto the target - clips regions that are out of bounds. Only supported for 8bbp

Clear ( byte val ) : void
Clear24 ( byte r, byte g, byte b ) : void
CreateCopy ( ) : JBitmap
DownScale ( int newWidth, int newHeight ) : void
Free ( ) : void

Just unlocks the bits, so that the bitmap can no longer be blitted to / from.

GetPixel ( int px, int py ) : byte
GetPixel24 ( int px, int py, byte &r, byte &g, byte &b ) : void
GetPixelFast ( int px, int py, byte &col ) : void
GetPixelFast ( int px, int py, byte &r, byte &g, byte &b ) : void
GetPixelFast ( int px, int py, byte &r, byte &g, byte &b, byte &a ) : void
JBitmap ( String fileName, JBitmapPixelFormat _format ) : System
JBitmap ( int w, int h, JBitmapPixelFormat _format ) : System
PutPixelFast ( int px, int py, byte col ) : void
PutPixelFast ( int px, int py, byte r, byte g, byte b ) : void
PutPixelFast ( int px, int py, byte r, byte g, byte b, byte a ) : void

비공개 메소드들

메소드 설명
GetPixFormat ( JBitmapPixelFormat format ) : System.Drawing.Imaging.PixelFormat

Gets the corresponding C# pixel format

메소드 상세

Blit() 공개 메소드

public Blit ( JBitmap target, int px, int py ) : void
target JBitmap
px int
py int
리턴 void

Blit() 공개 메소드

public Blit ( JBitmap target, int srcPx, int srcPy, int srcW, int srcH, int px, int py ) : void
target JBitmap
srcPx int
srcPy int
srcW int
srcH int
px int
py int
리턴 void

BlitAdditive() 공개 메소드

Additively blits onto the target. Only supported for 8bbp.
public BlitAdditive ( JBitmap target, int px, int py, float strength ) : void
target JBitmap
px int
py int
strength float
리턴 void

BlitAdditive24() 공개 메소드

Additively blits onto the target. Supports just 24bpp (source and target)
public BlitAdditive24 ( JBitmap target, int px, int py, float strength ) : void
target JBitmap
px int
py int
strength float
리턴 void

BlitMax() 공개 메소드

public BlitMax ( JBitmap target, int px, int py, float strength ) : void
target JBitmap
px int
py int
strength float
리턴 void

BlitOLD() 공개 메소드

Blits this bitmap onto the target - clips regions that are out of bounds. Only supported for 8bbp
public BlitOLD ( JBitmap target, int px, int py ) : void
target JBitmap
px int
py int
리턴 void

Clear() 공개 메소드

public Clear ( byte val ) : void
val byte
리턴 void

Clear24() 공개 메소드

public Clear24 ( byte r, byte g, byte b ) : void
r byte
g byte
b byte
리턴 void

CreateCopy() 공개 메소드

public CreateCopy ( ) : JBitmap
리턴 JBitmap

DownScale() 공개 메소드

public DownScale ( int newWidth, int newHeight ) : void
newWidth int
newHeight int
리턴 void

Free() 공개 메소드

Just unlocks the bits, so that the bitmap can no longer be blitted to / from.
public Free ( ) : void
리턴 void

GetPixel() 공개 메소드

public GetPixel ( int px, int py ) : byte
px int
py int
리턴 byte

GetPixel24() 공개 메소드

public GetPixel24 ( int px, int py, byte &r, byte &g, byte &b ) : void
px int
py int
r byte
g byte
b byte
리턴 void

GetPixelFast() 공개 메소드

public GetPixelFast ( int px, int py, byte &col ) : void
px int
py int
col byte
리턴 void

GetPixelFast() 공개 메소드

public GetPixelFast ( int px, int py, byte &r, byte &g, byte &b ) : void
px int
py int
r byte
g byte
b byte
리턴 void

GetPixelFast() 공개 메소드

public GetPixelFast ( 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
리턴 void

JBitmap() 공개 메소드

public JBitmap ( String fileName, JBitmapPixelFormat _format ) : System
fileName String
_format JBitmapPixelFormat
리턴 System

JBitmap() 공개 메소드

public JBitmap ( int w, int h, JBitmapPixelFormat _format ) : System
w int
h int
_format JBitmapPixelFormat
리턴 System

PutPixelFast() 공개 메소드

public PutPixelFast ( int px, int py, byte col ) : void
px int
py int
col byte
리턴 void

PutPixelFast() 공개 메소드

public PutPixelFast ( int px, int py, byte r, byte g, byte b ) : void
px int
py int
r byte
g byte
b byte
리턴 void

PutPixelFast() 공개 메소드

public PutPixelFast ( 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
리턴 void

프로퍼티 상세

bitmap 공개적으로 프로퍼티

public Bitmap,System.Drawing bitmap
리턴 System.Drawing.Bitmap

bitmapData 공개적으로 프로퍼티

public BitmapData,System.Drawing.Imaging bitmapData
리턴 System.Drawing.Imaging.BitmapData

format 공개적으로 프로퍼티

public JBitmapPixelFormat format
리턴 JBitmapPixelFormat