Click here to Skip to main content
15,885,957 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
BrockVnm24-Jan-04 12:06
BrockVnm24-Jan-04 12:06 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
Anonymous24-Jan-04 12:20
Anonymous24-Jan-04 12:20 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
BrockVnm24-Jan-04 12:24
BrockVnm24-Jan-04 12:24 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
Anonymous24-Jan-04 12:40
Anonymous24-Jan-04 12:40 
GeneralRe: error LNK2001: unresolved external symbol "public: __ Pin
BrockVnm24-Jan-04 13:37
BrockVnm24-Jan-04 13:37 
GeneralDirectMusic looping wavs Pin
Mad Docs Hairy Belly24-Jan-04 9:08
Mad Docs Hairy Belly24-Jan-04 9:08 
Generalconstructor implementation question Pin
nss24-Jan-04 8:20
nss24-Jan-04 8:20 

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.