com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class BmpRootPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


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

      • getBmpHeader

        public final BmpHeaderPackage getBmpHeader()

        Gets the BMP header metadata package.

        Returns:
        The BMP header metadata package.