Search Results for

    Show / Hide Table of Contents

    Class BitmapUtil

    Inheritance
    object
    BitmapUtil
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public static class BitmapUtil

    Methods

    GetBitmapInfo(Stream, out int, out int, out int, MemoryStream, out bool, out int, out int, out string, out bool, out string, MemoryStream)

    Obtain information about a bitmap stream

    Declaration
    public static bool GetBitmapInfo(Stream sourcestream, out int width, out int height, out int imagesize, MemoryStream MemBits, out bool indexed, out int bitsperpixel, out int usedcolors, out string palette, out bool isgif, out string mask, MemoryStream smask)
    Parameters
    Type Name Description
    Stream sourcestream
    int width

    Output parameter, with of the bitmap in pixels

    int height

    Output parameter, height of the bitmap in pixels

    int imagesize

    Size in bytes of the image information part

    MemoryStream MemBits

    Bits containing information converted to Adobe PDF compatible form

    bool indexed

    Output parameter, returns true if the image is paletized

    int bitsperpixel

    Output parameter, number of bits of information for each pixel

    int usedcolors

    Output parameter, valid for indexed bitmaps, number of colors used from the palette

    string palette

    Output parameter, palette in Adobe PDF compatible form, valid only in indexed bitmaps

    bool isgif
    string mask
    MemoryStream smask
    Returns
    Type Description
    bool

    Returns false if the stream is not abitmap

    GetJPegInfo(Stream, out int, out int)

    Obtain information about a jpeg stream

    Declaration
    public static bool GetJPegInfo(Stream astream, out int width, out int height)
    Parameters
    Type Name Description
    Stream astream

    Input stream

    int width

    Ouput parameter, width in pixels

    int height

    Ouput parameter, height in pixels

    Returns
    Type Description
    bool

    Returns false if it's not a jpeg

    In this article
    Back to top Generated by DocFX