public class BmpRootPackage extends ImageRootPackage
Represents the root package intended to work with metadata in a BMP image.
Learn more
This code sample shows how to read the header of a BMP file.
try (Metadata metadata = new Metadata(Constants.InputBmp)) { BmpRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getBmpHeader().getBitsPerPixel()); System.out.println(root.getBmpHeader().getColorsImportant()); System.out.println(root.getBmpHeader().getHeaderSize()); System.out.println(root.getBmpHeader().getImageSize()); System.out.println(root.getBmpHeader().getPlanes()); }
Modifier and Type | Method and Description |
---|---|
BmpHeaderPackage |
getBmpHeader()
Gets the BMP header metadata package.
|
getImageType
getFileType, sanitize
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final BmpHeaderPackage getBmpHeader()
Gets the BMP header metadata package.