Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Wierd CString Problem Pin
Christian Graus9-May-02 15:44
protectorChristian Graus9-May-02 15:44 
GeneralRe: Wierd CString Problem Pin
Nish Nishant9-May-02 17:24
sitebuilderNish Nishant9-May-02 17:24 
GeneralRe: Wierd CString Problem Pin
Maxwell Chen9-May-02 17:34
Maxwell Chen9-May-02 17:34 
GeneralRe: Wierd CString Problem Pin
Christian Graus9-May-02 17:40
protectorChristian Graus9-May-02 17:40 
GeneralRe: Wierd CString Problem Pin
jbarton10-May-02 9:38
jbarton10-May-02 9:38 
GeneralDrawDibDraw() equivalent Pin
moredip9-May-02 12:12
moredip9-May-02 12:12 
GeneralRe: DrawDibDraw() equivalent Pin
Mike Nordell9-May-02 20:19
Mike Nordell9-May-02 20:19 
GeneralRe: DrawDibDraw() equivalent Pin
moredip10-May-02 5:48
moredip10-May-02 5:48 
I'm afraid my previous post was rather cryptic, let me explain this a bit better Smile | :)

By negative height, I meant that the DIBs BITMAPINFOHEADER.biHeight is a negative value. I believe this means that the 1st scanline of data refers to the bottom line of the image, rather than the top line, and the second scanline of data refers to the second-from-bottom image line, rather than the second-from-top image line. This is a documented feature of the DIB format, it's just that DrawDibDraw() can't handle it. From MSDN:
...and the biHeight member must be a positive value; DrawDibDraw will not draw inverted DIBs...


I agree that flipping the DIB by hand wouldn't be too tricky, but the issue here is speed. I would like to be displaying around 60 bitmaps a second (I'm trying to display an avi stream), and I think the overhead of manually 'un-inverting' the DIBs would be too high.

There's also an element of me being stubborn about Win32 not supporting a documented feature of the DIB format Wink | ;)

I have actually been able to use StretchDIBits()successfully since my first post, but unfortunately it appears to use a different image-scaling algorithm which can produce a rather ugly bitmap. And it's also a bit slower than DrawDibDraw(), which is obviously an issue in my case.

Thanks for your help,

Pete
GeneralRe: DrawDibDraw() equivalent Pin
Mike Nordell21-May-02 5:34
Mike Nordell21-May-02 5:34 
GeneralRe: DrawDibDraw() equivalent Pin
moredip21-May-02 7:51
moredip21-May-02 7:51 
GeneralDoubleClick Area Validation in CListView :: MFC Pin
valikac9-May-02 11:48
valikac9-May-02 11:48 
GeneralRe: DoubleClick Area Validation in CListView :: MFC Pin
Tom Archer9-May-02 22:16
Tom Archer9-May-02 22:16 
GeneralRe: DoubleClick Area Validation in CListView :: MFC Pin
valikac10-May-02 4:53
valikac10-May-02 4:53 
GeneralRe: DoubleClick Area Validation in CListView :: MFC Pin
Tom Archer10-May-02 5:18
Tom Archer10-May-02 5:18 
GeneralLib Errors Pin
stupration9-May-02 11:43
stupration9-May-02 11:43 
GeneralRe: Lib Errors Pin
Joaquín M López Muñoz9-May-02 11:46
Joaquín M López Muñoz9-May-02 11:46 
GeneralRe: Lib Errors Pin
stupration9-May-02 12:09
stupration9-May-02 12:09 
GeneralRe: Lib Errors Pin
Joaquín M López Muñoz9-May-02 20:01
Joaquín M López Muñoz9-May-02 20:01 
GeneralRe: Lib Errors Pin
Mike Nordell9-May-02 20:24
Mike Nordell9-May-02 20:24 
GeneralRe: Lib Errors Pin
stupration10-May-02 12:54
stupration10-May-02 12:54 
GeneralRe: Lib Errors Pin
stupration10-May-02 13:10
stupration10-May-02 13:10 
Questionhow to detect that a window is flashing Pin
MaxiGroovy9-May-02 11:32
MaxiGroovy9-May-02 11:32 
AnswerRe: how to detect that a window is flashing Pin
Mike Nordell9-May-02 20:25
Mike Nordell9-May-02 20:25 
GeneralOptional Push-Buttons Around Frame :: MFC Pin
valikac9-May-02 11:14
valikac9-May-02 11:14 
GeneralRe: Optional Push-Buttons Around Frame :: MFC Pin
James R. Twine10-May-02 10:22
James R. Twine10-May-02 10:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.