Package ilcd
Class Control
Public Method setGraphicsScaling
static void setGraphicsScaling(int factor)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Parameter |
Range |
Description |
factor |
1 ... 16 |
factor for scaling graphics |
Scales subsequent graphics pixel-wise according to factor in horizontal and vertical direction.
Note
- This functionality can be used to "zoom" any graphic, e.g. when adapting images used on a 320x240 display to a 640x480 (VGA) iLCD.
- The scale factor is valid for all screens and viewports. Be aware, that all running animations are rescaled in the next frame update as soon as the scale factor is changed.
- If the scaled graphic exceeds the screen or viewport dimensions, scaled pixels that can't be completely drawn are omitted. This can lead to gaps between the cropped graphic and the according margin.
- The default value for factor is 1. It will be automatically set to default on startup and by the methods General.resetAll() or General.rebootPanelController().
Control.setGraphicsScaling(2);
Graphics will be scaled by a factor of 2.
See also:
Copyright © demmel products gmbh. All rights reserved.