C# 클래스 OpenBve.ImageExtensions

Provides extension methods for working with images
파일 보기 프로젝트 열기: leezer3/OpenBVE 1 사용 예제들

공개 메소드들

메소드 설명
CombineBitmapAlpha ( Bitmap b, Bitmap s, Bitmap a ) : bool

Combines a RGB bitmap and a greyscale mask into a RGBA bitmap

ToByteArray ( this image, ImageFormat format ) : byte[]

Converts an image to a byte array

메소드 상세

CombineBitmapAlpha() 공개 정적인 메소드

Combines a RGB bitmap and a greyscale mask into a RGBA bitmap
public static CombineBitmapAlpha ( Bitmap b, Bitmap s, Bitmap a ) : bool
b System.Drawing.Bitmap The output bitmap
s System.Drawing.Bitmap The RGB source bitmap
a System.Drawing.Bitmap The greyscale mask
리턴 bool

ToByteArray() 공개 정적인 메소드

Converts an image to a byte array
public static ToByteArray ( this image, ImageFormat format ) : byte[]
image this The image to convert
format System.Drawing.Imaging.ImageFormat The format of the image
리턴 byte[]