> There's a bitmap constructor that takes a point, a pixel format and a > string, in that order.
Sorry. I'm probably being dense but here's what I have now:
image = Image.open(os.path.join('data',self.options['uri']))
image.thumbnail((self.width,self.height),Image.ANTIALIAS)
point = avg.Point2D(0,0)
bitmap = avg.Bitmap(point,"B5G6R5",image.tostring())
self.p.enqueue('setBitmap',(self.mediaNodeName, bitmap))
I'm really not sure what pixel format I should be putting in? PIL just says
it's in RAW format? Also what is the point argument? I guessed at Point2D but
the exception I get when running that suggests it might just be an int?
Cheers
Alex
This email carries a disclaimer, a copy of which may be read at
http://learning.longhill.org.uk/disclaimer<<winmail.dat>>
_______________________________________________ libavg-users mailing list [email protected] https://mail.datenhain.de/mailman/listinfo/libavg-users
