[Image-SIG] UNSUBSCRIBE

Michael De Paola mike at dmawebapps.com
Fri Jan 28 22:33:26 CET 2005


On Jan 28, 2005, at 12:26 PM, <python at bnardone.com> wrote:

> I've just begun working OGL with Python and had a question about PIL.
> Specifically, I've been using it to load .png's as textures, and now 
> have a need
> to draw other images (.jpg, .png) as background images. I'm interested 
> in using
> something along the lines of:
> glPixelStorei(GL_UNPACK_ALIGNMENT,4);
> glRasterPos2i(0,600)
> glDrawPixels(800,600,GL_RGBA,*someBitmapSet*)
>
> But I am unsure as to how to get the *someBitmapSet* out of the object 
> returned by
> someImage.tostring("raw", "RGBA", 0, -1)
> image = numarray.array(numarray.fromstring(image, numarray.Byte))
>
> I've tried
> glDrawPixels(800,600,GL_RGBA,GL_UNSIGNED_BYTE,image)
> to no avail.
>
> Is this possible? Am I headed in the right direction?
>
>
>
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>



More information about the Image-SIG mailing list