[visionegg] Paletted BMP files of different sizes
- From: "Tim Blanche" <timblanche@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Sun, 05 Oct 2008 20:20:45 -0700
Hello,
I need to present a series of 100 or so images, not a movie, but briefly
flashed images separated by 1~3 seconds.
The "image_sequence_fast.py" demo almost does the job, with the
following two issues:
i) The BMP images I have are paletted, but Textures.py raises a error
"Paletted images are not supported". Quick work-around was to convert
the image into 24 bit RGB colour, but I was wondering if there's a
better way?
ii) the images do not have all the same pixel dimensions, so the
single-texture-with-a-fixed-size approach used by the demo code isn't
suitable. A not-so-quick work around would be to re-size all the images
to have the same dimensions as the largest image in the set, with border
padding the same as the background colour, but again, there must be a
better way.
Any thoughts?
Thanks,
Tim Blanche.
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- Follow-Ups:
- [visionegg] Re: Paletted BMP files of different sizes
- From: Dave Bissig
- [visionegg] Re: Paletted BMP files of different sizes
- From: Andrew Straw
Other related posts:
- » [visionegg] Paletted BMP files of different sizes
- » [visionegg] Re: Paletted BMP files of different sizes
- » [visionegg] Re: Paletted BMP files of different sizes
- [visionegg] Re: Paletted BMP files of different sizes
- From: Dave Bissig
- [visionegg] Re: Paletted BMP files of different sizes
- From: Andrew Straw