VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: How to load non standard pics ton dd surface ? Adam Hoult (2 replies, 0 views) (2000-May-9) Hi, well it all depends,
If you have access to the individual R-G and B pixel values for your own image format, then it's really easy to simply create a DIB structure, and blt it straight onto your surface using StretchDIBits api call.
If you can read the individual R-G and B values then i will sort out a sample for you if you want, and post it as an article on this site no problems.
If not, then there is not much you can do, other than write it out first temporarily in a file format you can load, then load it normally. (Or directly in memory, but that gets messy).
HTH
Adam
|