AlbLib.Imaging.Drawing.DrawBitmap C# (CSharp) Méthode

DrawBitmap() public static méthode

Computes height and draws bitmap.
public static DrawBitmap ( byte data, int width, byte palette ) : Bitmap
data byte /// Image pixel data. ///
width int /// Output image width. ///
palette byte /// Used palette index. ///
Résultat System.Drawing.Bitmap
        public static Bitmap DrawBitmap(byte[] data, int width, byte palette)
        {
            int height = (data.Length+width-1)/width;
            return DrawBitmap(data, width, height, palette);
        }

Same methods

Drawing::DrawBitmap ( byte data, int width, int height, RenderOptions options ) : Bitmap
Drawing::DrawBitmap ( byte data, int width, int height, byte palette ) : Bitmap

Usage Example

Exemple #1
0
 /// <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
     }));
 }
All Usage Examples Of AlbLib.Imaging.Drawing::DrawBitmap