-
Apr 27th, 2009, 09:19 PM
#1
Thread Starter
Addicted Member
vbCFBitmap vs vbCFDIB
Hello everybody. I know the Clipboard object supports two formats, Bitmap and DIB. I also know that bitmaps can either be device-dependent or device-independent. The difference between these two formats goes beyond my competency and I don't want to delve into it. However, I hear that all bitmaps are stored in memory as DIBs, so my question is: what difference does it make whether I store a bitmap in the clipboard into the bitmap or the DIB "folder"? Thank you.
-
Apr 28th, 2009, 03:58 AM
#2
Re: vbCFBitmap vs vbCFDIB
vbCFDIB stores both the bitmap and the palette while vbCFBitmap is only the bitmap.
vbCFBitmap + vbCFPalette = vbCFDIB
-
Apr 28th, 2009, 06:44 AM
#3
Thread Starter
Addicted Member
Re: vbCFBitmap vs vbCFDIB
Okay, so the difference is not relevant nowadays, since palettes are not used anymore with modern displays, right?
-
Apr 28th, 2009, 06:59 AM
#4
Re: vbCFBitmap vs vbCFDIB
A DIB is always a device independent bitmap and for such a bitmap you need a palette.
-
Apr 28th, 2009, 08:35 AM
#5
Thread Starter
Addicted Member
Re: vbCFBitmap vs vbCFDIB
What I mean is that, as far as I know, nobody fusses about setting palettes anymore, koz the video driver takes care of everything. As a matter of fact, the form's Palette and PaletteMode are completely ignored, and hPal returns 0, unless you run VB under 256-color emulation. This doesn't mean that palettes are useless: as you pointed out, they're necessary for DIBs.
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
|