Results 1 to 2 of 2

Thread: [2008] Panning or scrolling an image with an indexed palette

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    5

    Question [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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width