IImageResource

All Implemented Interfaces: com.groupdocs.editor.htmlcss.resources.IHtmlResource, com.groupdocs.editor.htmlcss.resources.images.IImage

public interface IImageResource extends IHtmlResource, IImage

Represents image resource of any type, raster or vector


https://developer.mozilla.org/en-US/docs/Web/CSS/image

Methods

Method Description
getType() In implementing type should return a type of specific image as an instance of specific ImageType, which encapsulates all type-specific info
getAspectRatio() In implementing type should return an aspect ratio of particular image regardless of its type.
getLinearDimensions() In implementing type should return linear dimensions of the image.

getType()

public abstract ImageType getType()

In implementing type should return a type of specific image as an instance of specific ImageType, which encapsulates all type-specific info

Returns: ImageType

getAspectRatio()

public abstract Ratio getAspectRatio()

In implementing type should return an aspect ratio of particular image regardless of its type. Both vector and raster images have intrinsic aspect ratio between its width and height.

Returns: Ratio -

getLinearDimensions()

public abstract Dimensions getLinearDimensions()

In implementing type should return linear dimensions of the image. For raster images they are intrinsic dimensions in pixels. Vector images, in counterpart, have no fixed dimensions, but their metadata can contain some basic dimensions in different measurement units.

Returns: Dimensions -