image embeded as ubtye

okibi okibi at ratedo.com
Mon Jul 30 04:43:37 PDT 2007


Hello!

I've got an image converted to a d source file that contains the image as a ubyte variable. What I'm wanting to know is how do I apply this as the image for a button in gtkD?

I was calling the external file, like such:

Image newImg = new Image("images\\new.png");
Button newBtn = new Button();
newBtn.setImage(newImg);

How can I set the ubyte as the image?

Thanks!


More information about the Digitalmars-d-learn mailing list