BmpRootPackage

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.ImageRootPackage

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()); }

Methods

Method Description
getBmpHeader() Gets the BMP header metadata package.

getBmpHeader()

public final BmpHeaderPackage getBmpHeader()

Gets the BMP header metadata package.

Returns: BmpHeaderPackage - The BMP header metadata package.