C# Класс OpenBve.ImageExtensions

Provides extension methods for working with images
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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[]