Skip to content

Add option to create transparent Image with alpha channel when using ImageGcDrawer [Multi-Monitor][HiDPI] #2046

@wahlbrink

Description

@wahlbrink

Problem
When creating an image using the new ImageGcDrawer, the image is currently initialized as opaque white image (at least on Windows) and it is not possible to create an image with alpha transparency.
Or have I overlooked something?

Request
This requests a possibility to create an image using an ImageGcDrawer comparable to this classic code:

var imageData = new ImageData(width, height, 24, new PaletteData(0xff0000, 0x00ff00, 0x0000ff));
imageData.setAlpha(0, 0, 0);
var image = new Image(display, imageData);
GC gc = new GC(image);

Additional context
This is e.g. required for a multi-monitor/HiDPI compatible solution of issue #501 (draw a mark over an existing icon while preserving its transparency).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions