treeform / pixie

Full-featured 2d graphics library for Nim.
MIT License
743 stars 28 forks source link

How to convert a Pixie Image to a wxImage #553

Open fenix272 opened 4 months ago

fenix272 commented 4 months ago

I'm using wxwidgets with Nim and i want to use your library to load the images, since it's pretty fast and support more formats. WxImage has a SetData function which accept unsigned char array and also a SetAlpha routine to set the alpha channel. How do i convert a Pixie Image to a format which is compatible with wxImage?

fenix272 commented 4 months ago

I solved the problem for now, but the "readImage" proc is painfully slow!! To load 18 jpeg images it took 36 seconds!! Is there a faster routine?

treeform commented 3 months ago

You probably need to compile with -d:release ?