C# 클래스 ThemeEditor.Common.Graphics.GraphicUtils

파일 보기 프로젝트 열기: usagirei/3DS-Theme-Editor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Bayer8X8 byte[]

공개 메소드들

메소드 설명
Bayer565Dither ( byte bgrData, int stride ) : void

Dithers Bgr888 Data into Bgr565-Safe Data.

BgrDataToGrayScale ( byte data ) : void
BlitbgrData ( byte srcData, int srcStride, byte tgtData, int tgtStride, int srcX, int srcY, int tgtX, int tgtY, int width, int height ) : bool

Blits a Region of Bgr888 Data from srcData into tgtData

PaletteGen ( byte bgrData, int max, float tolerance = 0.025f ) : List

Generates a Palette of up to max Colors from the specified bgrData

RotatebgrDataClockwise ( byte bgrData, int stride ) : void
RotatebgrDataCounterClockwise ( byte bgrData, int stride ) : void

비공개 메소드들

메소드 설명
Clamp ( int a ) : byte
GenBuckets ( byte bgrData, int colorDepth ) : Bucket>.Dictionary
GetClosestColor ( ColorRgb888 col, int depth ) : ColorRgb888
GetClosestColor ( byte channel, int depth ) : byte
ToHsl ( this rgb, double &h, double &s, double &l ) : void

메소드 상세

Bayer565Dither() 공개 정적인 메소드

Dithers Bgr888 Data into Bgr565-Safe Data.
public static Bayer565Dither ( byte bgrData, int stride ) : void
bgrData byte Bgr888 Data
stride int Data Stride
리턴 void

BgrDataToGrayScale() 공개 정적인 메소드

public static BgrDataToGrayScale ( byte data ) : void
data byte
리턴 void

BlitbgrData() 공개 정적인 메소드

Blits a Region of Bgr888 Data from srcData into tgtData
public static BlitbgrData ( byte srcData, int srcStride, byte tgtData, int tgtStride, int srcX, int srcY, int tgtX, int tgtY, int width, int height ) : bool
srcData byte Source Bgr888 Data
srcStride int Source Bgr888 Data Stride
tgtData byte Target Bgr888 Data
tgtStride int Target Bgr888 Data Stride
srcX int Source X Coordinate
srcY int Source Y Coordinate
tgtX int Target X Coordinate
tgtY int Target Y Coordinate
width int Region Width
height int Region Height
리턴 bool

PaletteGen() 공개 정적인 메소드

Generates a Palette of up to max Colors from the specified bgrData
public static PaletteGen ( byte bgrData, int max, float tolerance = 0.025f ) : List
bgrData byte Bgr888 Data
max int Max Colors
tolerance float Tolerance
리턴 List

RotatebgrDataClockwise() 공개 정적인 메소드

public static RotatebgrDataClockwise ( byte bgrData, int stride ) : void
bgrData byte
stride int
리턴 void

RotatebgrDataCounterClockwise() 공개 정적인 메소드

public static RotatebgrDataCounterClockwise ( byte bgrData, int stride ) : void
bgrData byte
stride int
리턴 void

프로퍼티 상세

Bayer8X8 공개적으로 정적으로 프로퍼티

public static byte[] Bayer8X8
리턴 byte[]