BrawlCrate v0.41
Wii File Editor
|
Static Public Member Functions | |
static Bitmap | AlphaSwap (Bitmap source) |
Swaps the alpha and value channels of a monochrome image. Transparent areas become black, and black areas become transparent. More... | |
static Bitmap | ApplyMask (Bitmap source, Bitmap mask) |
static Bitmap | Combine (Bitmap bg, Image fg) |
Combines two images. The size of the second (foreground) image will be used for the final image. More... | |
static Bitmap | Invert (Bitmap source) |
Inverts the colors in a bitmap. More... | |
static Bitmap | Resize (Bitmap orig, Size resizeTo) |
Makes a scaled version of an image using BrawlLib's texture converter. More... | |
static Bitmap | Border (Bitmap orig, Color color, int penwidth=1) |
static bool | IsSolidColor (Bitmap bmp, out Color c) |
Checks if the given bitmap is a single color. If the result is true, its color will be stored in the second parameter. More... | |
static bool | HasAlpha (Bitmap bmp) |
Checks if an image has any transparency. More... | |
static bool | HasNonAlpha (Bitmap bmp) |
Checks if an image has varying RGB values among pixels that are partially or fully opaque. More... | |
static int | CountColors (Bitmap bmp, int max) |
Counts the number of colors in a bitmap, up through the given maximum. If the maximum is reached, the method will return early. More... | |
static Bitmap | Blur (Bitmap orig, Color blurColor) |
Creates a new image, 2 pixels wider and taller than the original. Each pixel's alpha value is the largest alpha value among adjacent pixels on the original image. The color of each pixel will be the color given in the second argument. More... | |
static Bitmap | BlurCombine (Bitmap fg, Color blurColor) |
Creates a new bitmap with the original bitmap centered on top of the result of the Blur function. More... | |
static bool | HasSolidCorners (Bitmap newBitmap) |
|
inlinestatic |
Swaps the alpha and value channels of a monochrome image. Transparent areas become black, and black areas become transparent.
|
inlinestatic |
|
inlinestatic |
Creates a new image, 2 pixels wider and taller than the original. Each pixel's alpha value is the largest alpha value among adjacent pixels on the original image. The color of each pixel will be the color given in the second argument.
|
inlinestatic |
Creates a new bitmap with the original bitmap centered on top of the result of the Blur function.
|
inlinestatic |
|
inlinestatic |
Combines two images. The size of the second (foreground) image will be used for the final image.
|
inlinestatic |
Counts the number of colors in a bitmap, up through the given maximum. If the maximum is reached, the method will return early.
|
inlinestatic |
Checks if an image has any transparency.
|
inlinestatic |
Checks if an image has varying RGB values among pixels that are partially or fully opaque.
|
inlinestatic |
|
inlinestatic |
Inverts the colors in a bitmap.
|
inlinestatic |
Checks if the given bitmap is a single color. If the result is true, its color will be stored in the second parameter.
|
inlinestatic |
Makes a scaled version of an image using BrawlLib's texture converter.