treeform / pixie

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

How to convert a Pixie Image to a wxImage #553

Open fenix272 opened 6 days ago

fenix272 commented 6 days 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 5 days 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?