public static DrawBitmap ( byte data, int width, byte palette ) : |
||
data | byte | /// Image pixel data. /// |
width | int | /// Output image width. /// |
palette | byte | /// Used palette index. /// |
return |
public static Bitmap DrawBitmap(byte[] data, int width, byte palette)
{
int height = (data.Length+width-1)/width;
return DrawBitmap(data, width, height, palette);
}
Drawing::DrawBitmap ( byte data, int width, int height, RenderOptions options ) : |
|
Drawing::DrawBitmap ( byte data, int width, int height, byte palette ) : |
/// <summary> /// Draws the thumbnail to bitmap. /// </summary> /// <returns> /// Drawn image. /// </returns> public Image RenderTiny(RenderOptions options) { return(Drawing.DrawBitmap(Tiny.ImageData, Tiny.Width, Tiny.Height, new RenderOptions(options) { Palette = options.Palette ?? Palette })); }