4
如何在圖像上繪製文本(使用設置字體和大小)並將其保存爲JPEG?C++ windows位圖繪製文本
例如
CBitmap bitmap;
bitmap.CreateBitmap(width, height, 1, 32, rgbData);
這裏我想提請位圖一些文字:
CImage image;
image.Attach(bitmap);
image.Save(_T("C:\\test.bmp"), Gdiplus::ImageFormatJPEG);
感謝,並在那裏我可以設置字體和大小? – 2010-02-22 10:48:12
lav好的,我發現,非常感謝! – 2010-02-22 10:55:54
當我畫亞美尼亞文<畫圖,爲什麼?我設置Courier AM字體 CFont字體; \t font.CreatePointFont(80,「Courier AM」); \t memDC.SelectObject(font); – 2010-02-22 11:45:26