Skip to content

Celiagg and Image backend have different inital state #1047

@corranwebster

Description

@corranwebster

It looks like the Celiagg backend starts out with a completely transparent image, but the Image/agg backend starts out filled with white. It looks like Quartz and Cairo also start out transparent, QPainter doesn't initialize to anything, so Agg is probably the odd-one out.

Celiagg initializes with zeros:

buffer = np.zeros(shape, dtype=np.uint8)

Agg initializes with 255:

pixel_map = PixelMap(
width,
height,
pix_format_string_map[pix_format],
255,
bool(bottom_up),
).set_bmp_array()

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