Skip to content

Working with pixel size <= byte #538

@arkanoid87

Description

@arkanoid87

Hello!

I work with large images for geosciences with Nim and I was looking for an efficient rasterizer while keeping everything in memory
To archieve this, working with sizeof(pixel) <= 8 bits is a must

Cairo has FORMAT_A1 and FORMAT_A8 for this
https://www.cairographics.org/documentation/pycairo/3/reference/constants.html#cairo-format

FORMAT_A8 is the easiest way to work on the gpu like

glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, width, height, 0, GL_RED, GL_UNSIGNED_BYTE, image_data);

I strongly prefer a 100% Nim solution, is Pixie capable of working with single channel images?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions