visharad
April 19th, 2008, 03:44 AM
I posted this in VC++ forum. I feel this forum is more appropriate for this question.
I have created a dialog based MFC exe. I want to add a function, which takes the following as arguments: -
CDC *pDC;//pointer to device context
int x;
int y;
int cx;
int cy;
CString sFileName;
sFileName is name, with path, of a PNG file. The function should draw the image present in the file on the device context corresponding to pDC. x and y are the top and left corner of the rectangle and cx and cy and width and height of the rectangle in which the image should be drawn. Please note that the image is in PNG format.
Please let me know how to do this. It should work on NT,XP,CE.
I have read that ImagineFactory can be used on Windows CE. For that I need Imaging.dll. Let me know the URL from where I can download Imaging.dll.
Thanks
I have created a dialog based MFC exe. I want to add a function, which takes the following as arguments: -
CDC *pDC;//pointer to device context
int x;
int y;
int cx;
int cy;
CString sFileName;
sFileName is name, with path, of a PNG file. The function should draw the image present in the file on the device context corresponding to pDC. x and y are the top and left corner of the rectangle and cx and cy and width and height of the rectangle in which the image should be drawn. Please note that the image is in PNG format.
Please let me know how to do this. It should work on NT,XP,CE.
I have read that ImagineFactory can be used on Windows CE. For that I need Imaging.dll. Let me know the URL from where I can download Imaging.dll.
Thanks