ImageGear for Java
ImGearDIB Class Methods

For a list of all members of this type, see ImGearDIB members.

Public Methods
 NameDescription
Public MethodallocateImageAllocates pixel data based on the DIB header information.

Allocates store for pixel data based on the DIB header information. Previous store will be lost if any allocation was made before.

 
Public MethodcloneCreates a new object that is a copy of the current instance.  
Public MethodgetAreaCopyReturns an array of pixels that are exact copies of pixels in the requested rectangular part of the image.  
Public MethodgetBitDepthGets total quantity of bits used to store a single pixel.

Positive value that represents size of a single pixel in bits.

 
Public MethodgetBitsPerChannelGets allocated (actual) size of store for each channel in bits.

Positive number that specifies the actual size of channel in bits.

Returns allocated (actual) size of any image channel in bits. The values 8, 16 and 32 are used as a basis for the array allocation.

Value returned by this method is correct for uncompressed DIBs only. Compressed DIBs have a different channel structure. For these sorts of DIBs this method always returns 8, although this value has no real meaning.

 
Public MethodgetChannelCountGets total quantity of channels in image.

Non-zero channels quantity.

Returns the same value as ChannelDepth.Length.

 
Public MethodgetChannelDepthsGets the bit depth of each color channel in the image.

Integer array.

 
Public MethodgetColorSpaceGets color Space of current image.

ImGearColorSpace structure. ImGearColorSpace

 
Public MethodgetColumnCopyReturns an array of pixels that are exact copies of pixels located in requested column part.  
Public MethodgetExtraChannelInfoReturns extra channel info. Always non-null, length is always equal to number of extra channels in the image. Has zero length if the image contains no extra channels.

ImGearExtraChannelInfo

 
Public MethodgetHeightGets height of image in pixels.

Integer value.

 
Public MethodgetImageReturns a reference to raw image store. Should be used to gain direct access to image pixels.  
Public MethodgetImageResolutionReturns image resolution.

IImGearResolution

 
Public MethodgetLineCopyReturns an array of pixels that are exact copies of pixels located in the requested area of image.  
Public MethodgetPaletteReturns image palette, for images that have Indexed colorspace.

Provides full access to the DIB's palette represented as an array of ImGearRGBQuad structure objects.

Palette must be present in images that have ImGearColorSpaceIDs.I colorspace. Palette is ignored in images that have other colorspaces.

ImGearRGBQuad

 
Public MethodgetPixelCopyReturns exact copy of requested pixel.  
Public MethodgetRasterReturns reference to raw raster store. Should be used to gain direct access to raster pixels.  
Public MethodgetRowCopyReturns an array of pixels that are exact copies of the pixels located in requested row part of the row.  
Public MethodgetWidthGets width of image in pixels.

Integer value.

 
Public MethodisEmptyTells whether store for the pixels has been allocated.

Pixel store can be allocated during DIB (page) creation or by allocateImage method.

 
Public MethodisSignedReturns a value indicating whether image is signed or not.

 
Public MethodsetExtraChannelInfoSets extra channel info. Always non-null, length is always equal to number of extra channels in the image. Has zero length if the image contains no extra channels.

ImGearExtraChannelInfo

 
Public MethodsetImageResolutionSets image resolution.

IImGearResolution

 
Public MethodsetPaletteSets image palette, for images that have Indexed colorspace.

Array of ImGearRGBQuad structure objects or null.

Provides full access to the DIB's palette represented as an array of ImGearRGBQuad structure objects.

Palette must be present in images that have ImGearColorSpaceIDs.I colorspace. Palette is ignored in images that have other colorspaces.

ImGearRGBQuad

 
Public MethodsetSignedSets a value indicating whether image is signed or not.

 
Public MethodupdateAreaFromUpdates the pixels of the specified rectangular area.  
Public MethodupdateColumnFromUpdates part of column with new pixels.  
Public MethodupdateLineFromExchanges the pixels of the specified line with new pixels.  
Public MethodupdatePixelFromUpdates single pixel with new value.  
Public MethodupdateRowFromUpdates part of row with new pixels.  
Top
Protected Methods
 NameDescription
Protected MethodcopyImageToCopies internal image data to incoming dib.  
Top
See Also

Reference

ImGearDIB Class
com.accusoft.imagegear.core Package

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback