DIB
-
Can I select a DIB into a memory Device Context? If yes, then how? B2C
-
Can I select a DIB into a memory Device Context? If yes, then how? B2C
No. The docs for SelectObject[^] explain what can be selected into a DC. But, you can select a DIBSection into a mem DC. See CreateDIBSection[^] or you can create a DDB from a DIB with CreateDIBitmap[^] Mark
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
-
No. The docs for SelectObject[^] explain what can be selected into a DC. But, you can select a DIBSection into a mem DC. See CreateDIBSection[^] or you can create a DDB from a DIB with CreateDIBitmap[^] Mark
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
Sorry, wrong! Unless you know something I do not.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
-
Can I select a DIB into a memory Device Context? If yes, then how? B2C
Yes! A dib is just a bitmap and if your program can load it you can display it. The problems occur when it is not a dib (essentially a “.bmp”), in which case you will need to convert it using code like “CxImage” (at CP). See LoadImage (MSDN).
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
-
Sorry, wrong! Unless you know something I do not.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
Are you sure you're not mixing up DDBs and DIBs? If so how does one select a DIB into a device context?
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
-
Are you sure you're not mixing up DDBs and DIBs? If so how does one select a DIB into a device context?
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
:-O I apologize; at one time I was so used to dealing with raw DIBs that I forgot that they needed to be converted to a GDI DIB via CreateDIBSection, which converts a raw DIB to a DIB that the GDI recognizes, before it could be selected into a DC.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
-
:-O I apologize; at one time I was so used to dealing with raw DIBs that I forgot that they needed to be converted to a GDI DIB via CreateDIBSection, which converts a raw DIB to a DIB that the GDI recognizes, before it could be selected into a DC.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
:) No apology necessary for sure. I wonder what happened to the OP? Cheers! Mark
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
-
:) No apology necessary for sure. I wonder what happened to the OP? Cheers! Mark
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
They often disappear after the original post. Some times they come back and say thanks and other times they just continue on with their lives, with a little more information. I have been guilty of both! ;) P.S. I have been known to disappear for weeks!
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra