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

C / C++ / MFC

 
AnswerRe: return value - destructor call? Pin
Taka Muraoka22-Jun-07 3:06
Taka Muraoka22-Jun-07 3:06 
GeneralRe: return value - destructor call? Pin
zqueezy22-Jun-07 3:14
zqueezy22-Jun-07 3:14 
AnswerRe: return value - destructor call? Pin
zqueezy25-Jun-07 11:27
zqueezy25-Jun-07 11:27 
QuestionRotating Bitmaps !!!! Pin
Adno22-Jun-07 2:43
Adno22-Jun-07 2:43 
AnswerRe: Rotating Bitmaps !!!! Pin
rrrado22-Jun-07 3:05
rrrado22-Jun-07 3:05 
AnswerRe: Rotating Bitmaps !!!! Pin
Mark Salsbery22-Jun-07 5:55
Mark Salsbery22-Jun-07 5:55 
GeneralRe: Rotating Bitmaps !!!! Pin
Adno22-Jun-07 7:34
Adno22-Jun-07 7:34 
GeneralRe: Rotating Bitmaps !!!! Pin
Mark Salsbery22-Jun-07 7:58
Mark Salsbery22-Jun-07 7:58 
hmm I've found it to be precise. Controlling the image center is easy handled.
I'm not sure what you mean by rotating a DC and ending up with two images - It uses pretty much
the same technique you are using.

Check this out (if you want to Smile | :) ). This spins an image (in a window, so you can watch) around
its center point (like a propellor LOL) at 5 degree increments...
Gdiplus::Bitmap SrcBitmap(L"C:\\test.bmp", FALSE);
 
Graphics DstGraphics(*this); // <code>use an appropriate HWND here</code>
 
REAL angle = 0.0f;
for (int i = 0; i < 200; ++i)
{
   DstGraphics.ResetTransform();
   DstGraphics.RotateTransform(angle);
   DstGraphics.TranslateTransform(SrcBitmap.GetWidth() / 2.0f, SrcBitmap.GetWidth() / 2.0f, MatrixOrderAppend);
   DstGraphics.DrawImage(&SrcBitmap, -((INT)SrcBitmap.GetWidth() / 2), -((INT)SrcBitmap.GetHeight() / 2), 
                 SrcBitmap.GetWidth(), SrcBitmap.GetHeight());
 
   angle += 5.0f;
   if (angle >= 360.0f)
      angle -= 360.0f;
 
   //::Sleep(70);
}




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Rotating Bitmaps !!!! Pin
Adno22-Jun-07 8:20
Adno22-Jun-07 8:20 
QuestionRemoving Redundant Functions Pin
[d3m0n]22-Jun-07 2:42
[d3m0n]22-Jun-07 2:42 
AnswerRe: Removing Redundant Functions Pin
zqueezy22-Jun-07 3:25
zqueezy22-Jun-07 3:25 
GeneralRe: Removing Redundant Functions Pin
[d3m0n]22-Jun-07 3:50
[d3m0n]22-Jun-07 3:50 
QuestionRe: Removing Redundant Functions Pin
David Crow22-Jun-07 4:45
David Crow22-Jun-07 4:45 
AnswerRe: Removing Redundant Functions Pin
[d3m0n]22-Jun-07 5:09
[d3m0n]22-Jun-07 5:09 
QuestionRe: Removing Redundant Functions Pin
David Crow22-Jun-07 5:52
David Crow22-Jun-07 5:52 
AnswerRe: Removing Redundant Functions Pin
Arris7422-Jun-07 7:47
Arris7422-Jun-07 7:47 
AnswerRe: Removing Redundant Functions Pin
[d3m0n]22-Jun-07 8:01
[d3m0n]22-Jun-07 8:01 
QuestionVideo Rendering using DirectShow Pin
Maynka22-Jun-07 2:25
Maynka22-Jun-07 2:25 
AnswerRe: Video Rendering using DirectShow Pin
Mark Salsbery22-Jun-07 6:07
Mark Salsbery22-Jun-07 6:07 
GeneralRe: Video Rendering using DirectShow Pin
Maynka22-Jun-07 21:38
Maynka22-Jun-07 21:38 
QuestionResizing list control with window and splitter control Pin
neha.agarwal2722-Jun-07 1:25
neha.agarwal2722-Jun-07 1:25 
AnswerRe: Resizing list control with window and splitter control Pin
Rajkumar R22-Jun-07 2:13
Rajkumar R22-Jun-07 2:13 
AnswerRe: Resizing list control with window and splitter control Pin
Iain Clarke, Warrior Programmer22-Jun-07 3:09
Iain Clarke, Warrior Programmer22-Jun-07 3:09 
QuestionWin 32 DLL in WIN 16 platform Pin
Krishnatv22-Jun-07 1:03
Krishnatv22-Jun-07 1:03 
AnswerRe: Win 32 DLL in WIN 16 platform Pin
rrrado22-Jun-07 2:16
rrrado22-Jun-07 2:16 

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.