Document Solutions for Imaging
DS.Documents.Imaging.Windows Assembly / GrapeCity.Documents.Imaging.Windows Namespace / GcWicBitmap Class
Properties Methods

In This Topic
    GcWicBitmap Class Members
    In This Topic

    The following tables list the members exposed by GcWicBitmap.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public PropertyGets an instance of the GrapeCity.Documents.DX.Direct2D.SolidColorBrush class.

    The brush becomes available after executing the EnsureRenderTargetCreated method.

     
    Public PropertyGets an instance of the GrapeCity.Documents.DX.Direct2D.Factory1 class.

    The factory becomes available after executing the EnsureRenderTargetCreated method.

     
    Public PropertyGets the x-axis dpi resolution.  
    Public PropertyGets the y-axis dpi resolution.  
    Public PropertyGets an instance of the GrapeCity.Documents.DX.DirectWrite.Factory1 class.

    The factory becomes available after initializing the font cache (see the SetFontCache method).

     
    Public PropertyGets an instance of the GcWicBitmapGraphics class.

    The Graphics becomes available after executing the CreateGraphics method.

     
    Public Propertystatic (Shared in Visual Basic)Gets a value indicating if GcWicBitmap supports the CreateGraphics method on the current platform.  
    Public PropertyGets a value indicating whether the underlying image exists (has been loaded or created). If this property is false, call Load() or CreateImage() to load or create the underlying image. Calling any other method will throw an exception unless this property is true.  
    Public PropertyGets the height of the image, in DIPs.  
    Public PropertyGets an instance of the GrapeCity.Documents.DX.WIC.ImagingFactory class.  
    Public PropertyGets a value indicating whether the GcWicBitmap has been disposed of.  
    Public Propertystatic (Shared in Visual Basic)Gets a value indicating if GcWicBitmap is available on the current platform.

    Make sure that "Thread.CurrentThread.SetApartmentState(ApartmentState.MTA)" is executed at the beginning of the Program.Main() method.

     
    Public PropertyGets the internal image that is an IWICBitmap.  
    Public PropertyGets the pixel format of the image.  
    Public PropertyGets the pixel height of the image.  
    Public PropertyGets the pixel width of the image.  
    Public PropertyGets an instance of the GrapeCity.Documents.DX.Direct2D.RenderTarget class.

    The render target becomes available after executing the EnsureRenderTargetCreated method.

     
    Public PropertyGets the width of the image, in DIPs.  
    Top
    Public Methods
     NameDescription
    Public MethodApplies a license key to an instance of GcWicBitmap.  
    Public Methodstatic (Shared in Visual Basic)Returns the number of bits-per-pixel (bpp) for the given value of the PixelFormat enumeration.  
    Public MethodDetermines if the current pixel format can be converted to the destination pixel format.  
    Public MethodCreates an instance of the GcWicBitmapGraphics class.  
    Public MethodCreates the image of the given size and resolution.

    The content is not initialized and can contain any random data.

     
    Public MethodCreates a palette using a computed optimized values based on the bitmap.  
    Public MethodCreates one of the pre-defined palettes specified by PaletteType and optionally adds a transparent color.  
    Public MethodReleases the internal image and clears all metadata.  
    Public MethodClean up any resources being used.  
    Public MethodCreates a render target for the internal WIC image, if it has not been created yet.  
    Public MethodOverloaded. Copies a fragment of the image to the specified GrapeCity.Documents.Imaging.GcBitmap object.  
    Public MethodReturns the image stride (bytes per row).  
    Public MethodRetrieves the color table for indexed pixel formats, or null for other formats.  
    Public MethodOverloaded. Loads the image from another instance of GcWicBitmap.  
    Public MethodOverloaded. Loads another GcWicBitmap at the given destination within the image.  
    Public MethodOverloaded. Loads the image from a System.IO.Stream. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.  
    Public Methodstatic (Shared in Visual Basic)Converts a GUID of the WIC pixel format to the PixelFormat enumeration value.  
    Public Methodstatic (Shared in Visual Basic)Returns a GUID of the corresponding WIC pixel format for the given value of the PixelFormat enumeration.  
    Public MethodOverloaded. Saves the image to a System.IO.Stream using the specified format and options.  
    Public MethodOverloaded. Saves the image to a System.IO.Stream in BMP format.  
    Public MethodOverloaded. Saves the image to a System.IO.Stream in GIF format.  
    Public MethodOverloaded. Saves the image to a System.IO.Stream in JPEG format.  
    Public MethodOverloaded. Saves the image to a System.IO.Stream in JPEG XR format.  
    Public MethodOverloaded. Saves the image to a System.IO.Stream in PNG format.  
    Public MethodOverloaded. Saves the image to a System.IO.Stream in TIFF format.  
    Public MethodOverloaded. Changes the physical resolution of the image.  
    Public MethodAssigns a shared instance of the GrapeCity.Documents.Imaging.Windows.GcWicBitmap.FontCache object.  
    Public Methodstatic (Shared in Visual Basic)Sets the license key.  
    Public MethodSets the new color table for the bitmap.  
    Public MethodOverloaded. Stores the image buffer to a byte array (without the palette and metadata information).  
    Public MethodOverloaded. Stores the image buffer to a GrapeCity.Documents.Imaging.GcBitmap.  
    Public MethodCreates a new instance of GcWicBitmap as a copy of the current bitmap passed through the set of transformations.  
    Top
    See Also