styledText.getForeground(), styledText.getBackground(), marginCols, marginRgb };
double scaleX = size.x / (double) imageWidth;
double scaleY = size.y / (double) imageHeight;
final Transform transform = new Transform(Display.getCurrent());
transform.scale((float) scaleX, (float) scaleY);
if (baseImage == null || !Arrays.equals(this.cacheKey, currCacheKey)) {
this.cacheKey = currCacheKey;
Image tmpImage = new Image(Display.getCurrent(), size.x, size.y);