Hello , this is code which i use to make image.
Bitmap bitmap;
bitmap.CreateBitmap(715, 844,1,1, NULL);
CDC memDC;
memDC.CreateCompatibleDC(NULL);
memDC.SelectObject(&bitmap);
CString SS="Sun Goes Down";
memDC.TextOutA(1,2,SS);
CImage image;
image.Attach(bitmap);
image.Save(_T("C:\\test.bmp"), Gdiplus::ImageFormatJPEG);
and all is ok , now all i want is to send that image to print...
i use
DWORD pcchBuffer=100;
char * pszBuffer=new char[100];
GetDefaultPrinter(pszBuffer,&pcchBuffer);
again all is ok.
to get defaulet printername , for print i know WritePrinter function, but that fonction gives argumens LPVOID buffer to print , how can i send my image to print? Many many Thanks!