DioDocs for PDF
GcBitmap クラス メンバ
プロパティ  メソッド 

GrapeCity.Documents.Imaging アセンブリ > GrapeCity.Documents.Imaging 名前空間 : GcBitmap クラス

GcBitmapデータ型で公開されるメンバを以下の表に示します。

パブリック コンストラクタ
 名前解説
Public コンストラクタオーバーロードされます。   
トップ
パブリック プロパティ
 名前解説
Public プロパティGets the horizontal dpi of the bitmap.  
Public プロパティGets the vertical dpi of the bitmap.  
Public プロパティGets or sets an instance of GrapeCity.Documents.Imaging.Exif.ExifProfile with Exif metadata of the image.  
Public プロパティFor internal use only.  
Public プロパティGets an instance of the GcBitmapGraphics class.

The Graphics becomes available after executing the CreateGraphics method.

 
Public プロパティGets 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 プロパティGets the height of the image, in DIPs.  
Public プロパティGets or sets the raw ICC profile data.  
Public プロパティFor internal use only.  
Public プロパティGets a value indicating whether the GcBitmap has been disposed of.  
Public プロパティGets a value indicating whether the current instance is fully licensed.  
Public プロパティGets or sets a pixel color value at the specified coordinates.  
Public プロパティGets or sets a value indicating whether the alpha channel of the image should be ignored.  
Public プロパティGets the pixel height of the image.  
Public プロパティGets the pixel width of the image.  
Public プロパティGets or sets a value indicating if the color channels for all pixels are premultiplied by the alpha channel.

Setting this property doesn't perform actual conversion.

 
Public プロパティGets a pointer to the internal binary data.  
Public プロパティGets an instance of the BitmapRenderer class.

The renderer becomes available after executing the EnsureRendererCreated method.

 
Public プロパティGets or sets a value indicating whether pixel data should be dynamically mapped to a temporary file rather than kept fully in memory.

Setting this property to true frees up memory but slows down operations on pixel data.

Do not activate this mode for small images (less than 100 x 100 pixels).

The default is false.

 
Public プロパティGets the width of the image, in DIPs.  
トップ
パブリック メソッド
 名前解説
Public メソッドオーバーロードされます。 Adjusts the levels of an image histogram.

The method maps the input range of values (blackPoint..whitePoint) to the output range (outputBlack..outputWhite) using the specified gamma correction (midtone).

 
Public メソッドDraws the source bitmap with the specified opacity into the current bitmap.  
Public メソッドMultiplies RGBA values of the GcBitmap by a 5x4 matrix.  
Public メソッドApplies a graphic effect to an image or its portion in-place.  
Public メソッドApplies a license key to an instance of GcBitmap.  
Public メソッドオーバーロードされます。 Applies a transparency mask to the current image or its portion.  
Public メソッドModifies R, G, B color intensities such that the maximum range of values (0..255) is fully covered.  
Public メソッドPerforms a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source bitmap into the current bitmap.  
Public メソッドCalculates Otsu's threshold [0..255] for a grayscale image.

It is expected that the image is already converted to monochromatic gray.

 
Public メソッドオーバーロードされます。 Clears the GcBitmap with the specified color.  
Public メソッドCreates a new GcBitmap with a fragment of the image.  
Public メソッドオーバーロードされます。 Creates a new GcBitmap with a copy of the image.  
Public メソッドApplies the algorithms of Porter Duff compositing and blending to the current bitmap (used as backdrop, destination) and the source bitmap.  
Public メソッドオーバーロードされます。 Makes the alpha channel not premultiplied in the color channels and sets the Premultiplied property to False.  
Public メソッドオーバーロードされます。 Converts an image with transparent or semitransparent pixels to fully opaque with specified background color.  
Public メソッドオーバーロードされます。 Premultiplies the color channels by the alpha channel and sets the Premultiplied property to True.  
Public メソッドCreates an instance of the GcBitmapGraphics class.  
Public メソッドオーバーロードされます。 Creates the image of the given size and resolution.

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

If subsequent rendering is going to cover the whole surface of the bitmap, or if CreateGraphics will be called on the bitmap with a non-null background color, clearing it (which is a lengthy operation for large bitmaps) is not needed. If some areas of the bitmap are going to be left untouched, they must be cleared to avoid the possibility of random artifacts showing.

 
Public メソッドReleases the internal image and clears all metadata.  
Public メソッドClean up any resources being used.  
Public メソッドCreates a BitmapRenderer that allows drawing on the GcBitmap if it has not been created yet.  
Public メソッドCopies data from one color channel of the current GcBitmap to an existing GrayscaleBitmap of the same pixel size.  
Public メソッドCreates a sorted array of unique colors for the current image.  
Public メソッドProduces a flipped (horizontal or vertical) and/or rotated (by 90 degree increments) bitmap.

The source bitmap remains unchanged.

 
Public メソッドGenerates a palette for the image using the Octree quantizer algorithm.

The Alpha color channel is ignored.

 
Public メソッドオーバーロードされます。 Returns the coordinates of a rectangle with colors different from background.  
Public メソッドDetermines whether the image contains transparent or semitransparent pixels.

It always returns false for an opaque image.

 
Public メソッドCopies data from a GrayscaleBitmap to one color channel of the current GcBitmap of the same pixel size.  
Public メソッドオーバーロードされます。 Loads the image from a stream. JPEG, PNG, WEBP, GIF, BMP, TIFF, ICO, JPEG 2000 formats are supported.  
Public メソッドstatic (Shared in Visual Basic)Merges sorted arrays of unique colors in 32-bit ARGB format (returned from ExtractColors)  
Public メソッドCreates a new GcBitmap with a resized image fragment.  
Public メソッドオーバーロードされます。 Saves the image into a Stream in BMP format.  
Public メソッドオーバーロードされます。 Saves the image into a Stream in GIF format.  
Public メソッドオーバーロードされます。 Saves the image into a Stream in ICO format.  
Public メソッドオーバーロードされます。 Saves the image into a Stream in JPEG format with specified quality (from 0 to 100).  
Public メソッドオーバーロードされます。 Saves the image into a Stream in PNG format.  
Public メソッドオーバーロードされます。 Saves the image into a Stream in TIFF format.  
Public メソッドオーバーロードされます。 Saves the image into a Stream in WEBP format.  
Public メソッドUpdates the alpha channel of pixels to 255 (to make them opaque).  
Public メソッドオーバーロードされます。 Changes the physical resolution of the image.  
Public メソッドstatic (Shared in Visual Basic)Sets the license key.  
Public メソッドオーバーロードされます。 Changes pixel format from 8 bits per channel to lower values with two-dimensional error diffusion.  
Public メソッドCreates a BilevelBitmap from the current GcBitmap.

This method does not perform any transformations of the color palette. It is expected that the source GcBitmap has already been converted to bi-level palette using some thresholding or dithering effects. The ToBilevelBitmap method just copies data from a specified color channel to a new instance of the BilevelBitmap class.

 
Public メソッドCreates a GrayscaleBitmap from the current GcBitmap.

This method does not perform any transformations of the color palette. It is expected that the source GcBitmap has already been converted to grayscale palette using a GrayscaleEffect or something like that. Alternatively, you can use this method to extract individual channels of a color image without any prior conversion, and treat the resulting GrayscaleBitmap simply as a representation of some image data with 8 bits per pixel. The ToGrayscaleBitmap method just copies data from a specified color channel to a new instance of the GrayscaleBitmap class. If you need to copy some color channel to an existing instance of GrayscaleBitmap, use the ExportColorChannel method instead.

 
Public メソッドオーバーロードされます。 Creates an opaque Indexed4bppBitmap from the current image using the Octree quantizer algorithm.  
Public メソッドオーバーロードされます。 Creates an opaque Indexed8bppBitmap from the current image using the Octree quantizer algorithm.  
Public メソッドSaves the image into a Stream in JPEG format with specified quality (from 0 to 100). The returned stream should be disposed after usage.  
トップ
参照

GcBitmap クラス
GrapeCity.Documents.Imaging 名前空間