public class

PAGScaleMode

extends Object
java.lang.Object
   ↳ org.libpag.PAGScaleMode

Class Overview

Defines the values used in the setScaleMode method of PAGPlayer.

Summary

Constants
int LetterBox The content is scaled with respect to the original unscaled image's aspect ratio.
int None The content is not scaled.
int Stretch The content is stretched to fit.
int Zoom The content is scaled to fit with respect to the original unscaled image's aspect ratio.
Public Constructors
PAGScaleMode()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int LetterBox

The content is scaled with respect to the original unscaled image's aspect ratio. This is the default value.

Constant Value: 2 (0x00000002)

public static final int None

The content is not scaled.

Constant Value: 0 (0x00000000)

public static final int Stretch

The content is stretched to fit.

Constant Value: 1 (0x00000001)

public static final int Zoom

The content is scaled to fit with respect to the original unscaled image's aspect ratio. This results in cropping on one axis.

Constant Value: 3 (0x00000003)

Public Constructors

public PAGScaleMode ()