Click here to Skip to main content
15,903,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DEBUG to RELEASE Pin
eli150219793-Jun-09 18:25
eli150219793-Jun-09 18:25 
AnswerRe: DEBUG to RELEASE - SOLVED!!!! Pin
eli150219793-Jun-09 19:29
eli150219793-Jun-09 19:29 
GeneralRe: DEBUG to RELEASE - SOLVED!!!! Pin
hyperpontia14-Apr-11 2:01
hyperpontia14-Apr-11 2:01 
GeneralRe: DEBUG to RELEASE - SOLVED!!!! Pin
JackyGee24-Oct-11 23:12
JackyGee24-Oct-11 23:12 
GeneralRe: DEBUG to RELEASE Pin
norish3-Jun-09 16:11
norish3-Jun-09 16:11 
GeneralRe: DEBUG to RELEASE Pin
eli150219793-Jun-09 18:21
eli150219793-Jun-09 18:21 
GeneralRe: DEBUG to RELEASE - SOLVED!!!!!! Pin
eli150219793-Jun-09 19:38
eli150219793-Jun-09 19:38 
QuestionCreating bitmap from scratch using GDI and convert to raw memory data Pin
GingkoBiloba3-Jun-09 3:37
GingkoBiloba3-Jun-09 3:37 
Hello,

Please could somebody help me about the following :

I need a simple way to create a bitmap from scratch in memory, draw something in it using some GDI functions (like LineTo, Polyline or TextOut), and convert the result in a 2D byte array, for using in a home made raster device.

The result needs to have only 2 colors (black and white), although it can be useful to have intermediary grayscale in order to be able to stretch or shrink the bitmap and choose the transition level between black and white.

No file nor any resource nor any window should be involved, everything has to stay in memory. No compression is needed either.

Language is C/C++, *without* MFC.

I tried using CreateCompatibleDC, CreateCompatibleBitmap and GetDIBits, maybe this is still what I have to do, but now unfortunately I get only inconsistent results.

Is there somebody here who already made something like this ?
Best regards,

Gilles
AnswerRe: Creating bitmap from scratch using GDI and convert to raw memory data Pin
Stephen Hewitt3-Jun-09 4:16
Stephen Hewitt3-Jun-09 4:16 
GeneralRe: Creating bitmap from scratch using GDI and convert to raw memory data Pin
GingkoBiloba3-Jun-09 5:05
GingkoBiloba3-Jun-09 5:05 
QuestionC++ MySQL Column Names Pin
JimBewlay443-Jun-09 3:09
JimBewlay443-Jun-09 3:09 
AnswerRe: C++ MySQL Column Names Pin
Stuart Dootson3-Jun-09 3:31
professionalStuart Dootson3-Jun-09 3:31 
QuestionC++ Windows Forms DateTime Pin
wael_r3-Jun-09 2:11
wael_r3-Jun-09 2:11 
QuestionRe: C++ Windows Forms DateTime Pin
CPallini3-Jun-09 2:28
mveCPallini3-Jun-09 2:28 
AnswerRe: C++ Windows Forms DateTime Pin
Stuart Dootson3-Jun-09 2:41
professionalStuart Dootson3-Jun-09 2:41 
AnswerRe: C++ Windows Forms DateTime Pin
George L. Jackson3-Jun-09 10:36
George L. Jackson3-Jun-09 10:36 
QuestionHow to change the color of CScrollBar in its subclass Pin
bdwzz3-Jun-09 1:33
bdwzz3-Jun-09 1:33 
QuestionBalloon tip in Tray Icon Pin
bhanu_85093-Jun-09 1:32
bhanu_85093-Jun-09 1:32 
AnswerRe: Balloon tip in Tray Icon Pin
Naveen3-Jun-09 1:47
Naveen3-Jun-09 1:47 
Question[Message Deleted] Pin
navneet19853-Jun-09 1:22
navneet19853-Jun-09 1:22 
QuestionRepost Pin
CPallini3-Jun-09 1:50
mveCPallini3-Jun-09 1:50 
JokeRe: Repost Pin
Hamid_RT3-Jun-09 3:06
Hamid_RT3-Jun-09 3:06 
JokeRe: Repost Pin
CPallini3-Jun-09 3:23
mveCPallini3-Jun-09 3:23 
JokeRe: Repost Pin
Michael Schubert3-Jun-09 3:32
Michael Schubert3-Jun-09 3:32 
JokeRe: Repost Pin
CPallini3-Jun-09 5:01
mveCPallini3-Jun-09 5:01 

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.