Skip to content

Replace usages of new Image(device, width, height) / new GC(image) #188

Open
1 of 3 issues completed
@HeikoKlare

Description

@HeikoKlare

As documented in #171, images instantiated with a fixed width/height, which are usually used as a canvas to manually draw an, are insufficient for multi-zoom scenarios, in which an image to be drawn on demand may be required in different sizes.

In #143, a new constructor for Image, taking an ImageGcDrawer, has been introduced to replace the implementation in above mentioned use cases with a dynamic generation of an image at the propert size.

This is a follow-up task consisting of the following steps:

  • Replace all calls to new Image(device, width, height) with a subsequent call to new GC(image) with a proper ImageGcDrawer
  • Reprecate the Image constructor taking a device, width, and height.

Sub-issues

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Type

No type

Projects

Status

✅ Approved

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions