public static interface AndroidGraphics.ScaleFunc
| Modifier and Type | Method and Description |
|---|---|
Scale |
computeScale(float width,
float height,
Scale gfxScale)
Returns the scale to be used by the canvas with the supplied dimensions.
|
Scale computeScale(float width, float height, Scale gfxScale)
width - the width of the to-be-created canvas, in logical pixels.height - the height of the to-be-created canvas, in logical pixels.gfxScale - the default scale factor (defines the scale of the logical pixels).Copyright © 2015. All Rights Reserved.