Click here to Skip to main content
15,905,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pause commands Pin
Cedric Moonen27-Mar-03 4:53
Cedric Moonen27-Mar-03 4:53 
GeneralRe: pause commands Pin
moraalg27-Mar-03 16:27
moraalg27-Mar-03 16:27 
GeneralRe: pause commands Pin
Mike Upton27-Mar-03 4:53
Mike Upton27-Mar-03 4:53 
GeneralRe: pause commands Pin
InternetMill28-Mar-03 4:23
InternetMill28-Mar-03 4:23 
GeneralHtmlHelp HH_DISPLAY_TEXT_POPUP format Pin
Telefonen27-Mar-03 4:29
Telefonen27-Mar-03 4:29 
GeneralActiveX related question Pin
Shah Shehpori27-Mar-03 4:12
sussShah Shehpori27-Mar-03 4:12 
GeneralRe: ActiveX related question Pin
Cedric Moonen27-Mar-03 4:32
Cedric Moonen27-Mar-03 4:32 
GeneralGDI performance (Re) Pin
Raphael Kindt27-Mar-03 4:07
Raphael Kindt27-Mar-03 4:07 
Hi world...
I'm using DirectDraw with GDI to show image from a frame grabber inside a window (not fullscreen mode). I work with a DMA from the frame grabber to a video surface memory (get with DirectDraw). Then I use the GDI function StretchDIBits(...) to display this image inside a window.
Now, I want to zoom or unzoom this image. At this time I do that by changing arguments of the StretchDIBits(...) function. For example:
StretchDIBits(pDC->GetSafeHdc(),
    0, 0, MAX_WIDTH * coef, MAX_HEIGHT * coef,
    0, 0, MAX_WIDTH, MAX_HEIGHT,
    Desc_ddsd.lpSurface, pBMPinfo, DIB_RGB_COLORS, SRCCOPY);

where coef is a coeficient for the zoom (if coef > 1) or unzoom (if coef < 1).
The unzoom is quickly enough but when the zoom is very slow. I can understand why (the zoom adds new pixels but not the unzoom)!
My question is : how to improve the zoom performances. I want a quick zoom. Does there exist another function? another technique?

Thanks in advance for your help...

Hello World!!! Smile | :)
from Raphaël
GeneralNever-ending Visual Studio Pin
Adrian Metcalfe27-Mar-03 3:40
Adrian Metcalfe27-Mar-03 3:40 
GeneralRe: Never-ending Visual Studio Pin
Roger Allen28-Mar-03 0:46
Roger Allen28-Mar-03 0:46 
GeneralRe: Never-ending Visual Studio Pin
John R. Shaw28-Mar-03 17:35
John R. Shaw28-Mar-03 17:35 
GeneralSS_RIGHT style but without wrapping... Pin
Hamzeh27-Mar-03 3:35
Hamzeh27-Mar-03 3:35 
GeneralUsing Windows 2000 Debugging Symbols in VC++ 6.0 Pin
GPT99927-Mar-03 3:32
GPT99927-Mar-03 3:32 
GeneralRe: Using Windows 2000 Debugging Symbols in VC++ 6.0 Pin
Chris Richardson27-Mar-03 9:01
Chris Richardson27-Mar-03 9:01 
GeneralResizable font Pin
Cedric Moonen27-Mar-03 3:29
Cedric Moonen27-Mar-03 3:29 
GeneralRe: Resizable font Pin
Tibor Blazko27-Mar-03 3:44
Tibor Blazko27-Mar-03 3:44 
GeneralRe: Resizable font Pin
Cedric Moonen27-Mar-03 3:51
Cedric Moonen27-Mar-03 3:51 
GeneralRe: Resizable font Pin
Iain Clarke, Warrior Programmer27-Mar-03 4:21
Iain Clarke, Warrior Programmer27-Mar-03 4:21 
GeneralRe: Resizable font Pin
Cedric Moonen27-Mar-03 4:24
Cedric Moonen27-Mar-03 4:24 
GeneralAutostart Pin
Jump_Around27-Mar-03 3:08
Jump_Around27-Mar-03 3:08 
GeneralRe: Autostart Pin
Pavel Klocek27-Mar-03 3:16
Pavel Klocek27-Mar-03 3:16 
GeneralRe: Autostart Pin
Pavel Klocek27-Mar-03 3:20
Pavel Klocek27-Mar-03 3:20 
GeneralRe: Autostart Pin
Jump_Around27-Mar-03 4:11
Jump_Around27-Mar-03 4:11 
GeneralExecute a DTS in SQL7 Pin
JPortugal27-Mar-03 3:07
JPortugal27-Mar-03 3:07 
GeneralRe: Execute a DTS in SQL7 Pin
Anders Molin27-Mar-03 11:22
professionalAnders Molin27-Mar-03 11: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.