TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
culligoola
NA
2
0
pixel indexed bitmaps resist being drawn upon
Oct 13 2004 9:00 AM
Hello, I am constructing a bitmap via the 'unsafe' constructor: Bitmap myBitmap = new Bitmap(int w ,int h, int stride, PixelFormat frm, IntPtr dataPtr) and then, I am drawing myBitmap on some form. However, I require double buffering to avoid flickering, so I try to get a graphics object from the bitmap, as in: Graphics g = Graphics.FromImage(myBitmap) and this survives compilation. But on runtime, I get an System exception telling that: "A Graphics object cannot be created from an image that has an indexed pixel format" So my question is: How do I do double buffering with indexed pixel format bitmaps? Yossi
Reply
Answers (
0
)
Need advice on how to save window graphics
deleting an image file