Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstd::list question Pin
bneacetp24-Jan-04 15:31
bneacetp24-Jan-04 15:31 
GeneralRe: std::list question Pin
PJ Arends24-Jan-04 18:05
professionalPJ Arends24-Jan-04 18:05 
GeneralRe: std::list question Pin
bneacetp24-Jan-04 18:17
bneacetp24-Jan-04 18:17 
GeneralRe: std::list question Pin
bneacetp28-Jan-04 23:20
bneacetp28-Jan-04 23:20 
GeneralRe: std::list question Pin
PJ Arends31-Jan-04 6:00
professionalPJ Arends31-Jan-04 6:00 
Generalstatic member functions & multithreading Pin
Ernesto D.24-Jan-04 13:58
Ernesto D.24-Jan-04 13:58 
GeneralRe: static member functions & multithreading Pin
Michael Dunn24-Jan-04 19:01
sitebuilderMichael Dunn24-Jan-04 19:01 
GeneralRe: static member functions & multithreading Pin
Ernesto D.26-Jan-04 12:04
Ernesto D.26-Jan-04 12:04 
GeneralRe: static member functions & multithreading Pin
Michael Dunn26-Jan-04 12:30
sitebuilderMichael Dunn26-Jan-04 12:30 
GeneralRe: static member functions & multithreading Pin
Gerald Schwab25-Jan-04 17:03
Gerald Schwab25-Jan-04 17:03 
GeneralRe: static member functions & multithreading Pin
Ernesto D.26-Jan-04 12:02
Ernesto D.26-Jan-04 12:02 
GeneralSuspend Program Execution Pin
Daniel132424-Jan-04 13:17
Daniel132424-Jan-04 13:17 
GeneralRe: Suspend Program Execution Pin
wb25-Jan-04 4:31
wb25-Jan-04 4:31 
GeneralRe: Suspend Program Execution Pin
Daniel132425-Jan-04 7:43
Daniel132425-Jan-04 7:43 
GeneralStretchDIBits returns weird artifacts Pin
cnstrnd24-Jan-04 13:08
cnstrnd24-Jan-04 13:08 
Original bit field: http://noisydisco.free.fr/original.jpg

Stretched bitmap: http://noisydisco.free.fr/stretched.jpg

The target bitmap init code :
// Create the bitmap and its device context
BITMAPINFOHEADER bmiHeader;
ZeroMemory( &bmiHeader, sizeof(BITMAPINFOHEADER) );
bmiHeader.biSize        = sizeof(BITMAPINFOHEADER);
bmiHeader.biWidth       = _dwBitmapSize.X;
bmiHeader.biHeight      = _dwBitmapSize.Y;
bmiHeader.biPlanes      = 1;
bmiHeader.biBitCount    = 32;
bmiHeader.biCompression = BI_RGB;

_hDC = CreateCompatibleDC( NULL );

_hBitmap = CreateDIBSection( _hDC, (BITMAPINFO*) &bmiHeader,
    DIB_RGB_COLORS, (void**) &_pBitmapBits, NULL, 0 );

_hOldBitmap = (HBITMAP) SelectObject( _hDC, _hBitmap );


And the stretch:
// Stretch source to fit target
StretchDIBits( _hDC,
    0, 0, _dwBitmapSize.X, _dwBitmapSize.Y,
    0, 0, pbmi->bmiHeader.biWidth, pbmi->bmiHeader.biHeight,
    pSource, pbmi, DIB_RGB_COLORS, SRCCOPY );

Everything seems straight forward but I can't make this work.
Where is the problem ?
Thanks for your help
GeneralRe: StretchDIBits returns weird artifacts Pin
CodeBrain25-Jan-04 21:53
CodeBrain25-Jan-04 21:53 
GeneralAccelerators Pin
Deian24-Jan-04 13:06
Deian24-Jan-04 13:06 
GeneralRe: Accelerators Pin
eugi25-Jan-04 0:55
eugi25-Jan-04 0:55 
GeneralRe: Accelerators Pin
Deian25-Jan-04 7:04
Deian25-Jan-04 7:04 
GeneralAccess Child Windows in IE Pin
gaz200424-Jan-04 12:24
sussgaz200424-Jan-04 12:24 
GeneralRe: Access Child Windows in IE Pin
Marcello25-Jan-04 11:11
Marcello25-Jan-04 11:11 
Generalerror LNK2001: unresolved external symbol "public: __ Pin
BrockVnm24-Jan-04 9:44
BrockVnm24-Jan-04 9:44 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
Amit Dey24-Jan-04 11:38
Amit Dey24-Jan-04 11:38 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
BrockVnm24-Jan-04 11:48
BrockVnm24-Jan-04 11:48 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
Amit Dey24-Jan-04 11:55
Amit Dey24-Jan-04 11:55 

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.