|
-
Jun 7th, 2008, 10:35 PM
#1
Thread Starter
New Member
[2008] Panning or scrolling an image with an indexed palette
I need to pan (or slide) an image up, down, left, or right. It's easy with the graphics object, but the problem is that the graphics object won't work with indexed images. I'm working with 4bppIndexed format. I can get it to work by converting the image to a non-indexed format, then use the DrawImageUnscaled method of the graphics object, then convert it back to an indexed format. The problem is that the conversion back to indexed format requires manually redrawing every pixel and that is way too slow for this app. It needs to be done in a split second.
Anyone know how to accomplish this much faster?
Last edited by Latch; Jun 8th, 2008 at 05:33 PM.
-
Jun 9th, 2008, 07:42 AM
#2
Thread Starter
New Member
Re: [2008] Panning or scrolling an image with an indexed palette
Wow, no answer? Well that makes me feel better in the sense that I was beginning to wonder how stupid I'd feel when I heard that the answer was super simple. Evidently there is no simple answer. I guess the next step is to hire a C++ programmer to make a custom tiny DLL to accomplish this. Any takers?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|