Skip to content

Replace usages of new Image(device, width, height) with new GC(image, style) #266

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

GC can be initialize with GC(drawable) or GC(drawable, style). Currently Image(Device, ImageGcDrawer, height, width) doesn't consider style attribute while initializing GC. We need to create a new constructor for Image. e.g. Image(Device, ImageGcDrawer, height, width, style) for which later GC inside ImageGcDrawer is initialized considering the style provided to it.

Here is the example for simple rectangle with and without styling providing (RIGHT_TO_LEFT in this case)
Image

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions