Skip to content

Refactor ImageDataWithMaskCursorHandleProvider to validate and extract mask within the constructor #439

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

Description
Currently we validate mask in ImageDataWithMaskCursorHandleProvider constructor and later retrieve it in a same way in setupCursorFromImageData. Why not retrieve the mask from source and store it in mask field in the constructor? We then need to ensure that a mask that is first created from source and then scaled is the same as first scaling the source and then extracting a mask out of it.

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