Click here to Skip to main content
15,907,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: When i import my DLL showing this error message.. Pin
Rajkumar R12-Mar-08 19:24
Rajkumar R12-Mar-08 19:24 
GeneralRe: When i import my DLL showing this error message.. Pin
rowdy_vc++12-Mar-08 19:32
rowdy_vc++12-Mar-08 19:32 
GeneralRe: When i import my DLL showing this error message.. [modified] Pin
Rajkumar R12-Mar-08 19:37
Rajkumar R12-Mar-08 19:37 
GeneralRe: When i import my DLL showing this error message.. Pin
Rajesh R Subramanian12-Mar-08 22:27
professionalRajesh R Subramanian12-Mar-08 22:27 
GeneralRe: When i import my DLL showing this error message.. Pin
ThatsAlok1-Apr-09 19:36
ThatsAlok1-Apr-09 19:36 
GeneralRe: When i import my DLL showing this error message.. Pin
David Crow13-Mar-08 2:33
David Crow13-Mar-08 2:33 
GeneralSearching whole view or window for required block Pin
AnkurSharma12-Mar-08 18:55
AnkurSharma12-Mar-08 18:55 
GeneralRe: Searching whole view or window for required block Pin
Rajkumar R12-Mar-08 19:11
Rajkumar R12-Mar-08 19:11 
Generallog10 usage Pin
rp_suman12-Mar-08 18:24
rp_suman12-Mar-08 18:24 
GeneralRe: log10 usage Pin
rp_suman12-Mar-08 19:04
rp_suman12-Mar-08 19:04 
GeneralRe: log10 usage [modified] Pin
Rajkumar R12-Mar-08 20:15
Rajkumar R12-Mar-08 20:15 
GeneralRe: log10 usage Pin
CPallini12-Mar-08 22:10
mveCPallini12-Mar-08 22:10 
GeneralRe: log10 usage Pin
rp_suman13-Mar-08 16:57
rp_suman13-Mar-08 16:57 
GeneralEmail Preview Pin
Priya_Sundar12-Mar-08 18:10
Priya_Sundar12-Mar-08 18:10 
GeneralRe: Email Preview Pin
Rajkumar R12-Mar-08 22:01
Rajkumar R12-Mar-08 22:01 
GeneralRe: Email Preview [modified] Pin
Priya_Sundar12-Mar-08 22:12
Priya_Sundar12-Mar-08 22:12 
QuestionImage rotation using RotateTransform()???? Pin
TooShy2Talk12-Mar-08 17:34
TooShy2Talk12-Mar-08 17:34 
AnswerRe: Image rotation using RotateTransform()???? Pin
Mark Salsbery12-Mar-08 18:26
Mark Salsbery12-Mar-08 18:26 
You could use Graphics::TranslateTransform() to shift the image vertically and/or horizontally.

Note that the order you set transforms with matrixes is important...
Here's some reference material:  Transformations (GDI+)[^]

FWIW, Here's an example (I've posted here before) which rotates an image around its center point, like a propeller...

    Gdiplus::Bitmap SrcBitmap(L"C:\\test.tif", FALSE);
    
    Graphics DstGraphics(*this);

    REAL angle = 0.0f;
    for (int i = 0; i < 1440; ++i)
    {
        DstGraphics.ResetTransform();
        DstGraphics.RotateTransform(angle);
        DstGraphics.TranslateTransform(SrcBitmap.GetWidth() / 2.0f, SrcBitmap.GetHeight() / 2.0f, MatrixOrderAppend);
        DstGraphics.DrawImage(&SrcBitmap, -((INT)SrcBitmap.GetWidth() / 2), -((INT)SrcBitmap.GetHeight() / 2), SrcBitmap.GetWidth(), SrcBitmap.GetHeight());

        angle += 0.5f;

        // Use this to slow it down :)
//        ::Sleep(10);
    }

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Image rotation using RotateTransform()???? Pin
TooShy2Talk12-Mar-08 19:08
TooShy2Talk12-Mar-08 19:08 
QuestionRe: Image rotation using RotateTransform()???? Pin
TooShy2Talk12-Mar-08 19:53
TooShy2Talk12-Mar-08 19:53 
AnswerRe: Image rotation using RotateTransform()???? Pin
Rajkumar R12-Mar-08 21:05
Rajkumar R12-Mar-08 21:05 
GeneralRe: Image rotation using RotateTransform()???? Pin
TooShy2Talk12-Mar-08 22:26
TooShy2Talk12-Mar-08 22:26 
GeneralRe: Image rotation using RotateTransform()???? Pin
Mark Salsbery13-Mar-08 6:34
Mark Salsbery13-Mar-08 6:34 
QuestionThread Response Time Pin
jonsey2984712-Mar-08 17:15
jonsey2984712-Mar-08 17:15 
GeneralRe: Thread Response Time Pin
krmed13-Mar-08 1:59
krmed13-Mar-08 1:59 

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.