Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproblems with getting RGB values Pin
Cyberizen13-Dec-03 5:16
Cyberizen13-Dec-03 5:16 
GeneralRe: problems with getting RGB values Pin
l a u r e n13-Dec-03 8:01
l a u r e n13-Dec-03 8:01 
QuestionHow to open the project in VC6.0? Pin
zhaopzhi13-Dec-03 3:43
zhaopzhi13-Dec-03 3:43 
AnswerRe: How to open the project in VC6.0? Pin
ZoogieZork13-Dec-03 4:22
ZoogieZork13-Dec-03 4:22 
GeneralRe: How to open the project in VC6.0? Pin
zhaopzhi13-Dec-03 5:07
zhaopzhi13-Dec-03 5:07 
QuestionHow to only list my own posted messages in the forum? Pin
zhaopzhi13-Dec-03 3:35
zhaopzhi13-Dec-03 3:35 
AnswerRe: How to only list my own posted messages in the forum? Pin
ZoogieZork13-Dec-03 4:23
ZoogieZork13-Dec-03 4:23 
General(1)Overlay a text on DIB. (2)Merge 2 DIBs Pin
Saurabh_Delhi13-Dec-03 3:19
Saurabh_Delhi13-Dec-03 3:19 
Hi,

I am working on a project in which I am getting the DIBs and text data from TCP/IP sockets. I have to overlay this text on the DIBs.

But restriction is that I can not use the CDC:: DrawText() and CDC:: TextOut() methods. Reason is that my original data is coming from a TCP/IP socket as DIBs. If I use a DC object to overlay the text then I might loose the original colors of the DIB if current display settings has lesser colors then the origibal DIBs. I need a method which overlay the text on DIBs itself, without loosing any color/display info. Is there any API available to overlay text on DIBs without loosing any color info?????????????????????????

I have an approach: I will create a transparent Bitmap, overlay the text using CDC:: DrawText() / TextOut() at given positions on that transparent Bitmap and then use GetDIBBits() to get the DIB of transparent bitmap. This DIB has text overlayed on it. Now I will merge my original DIB with this transparent DIB. It will have text overlayed on original DIB. This way, my text will be overlayed on the original DIBs and I will also not loose any information of the original DIBs. Is there any way to merge two DIBs??????????????????????????

Pls help me out. I can not loose the colors of my image.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pls reply me directly at: 'swal' at 'momentum-tech' dot 'com'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Generalgetting RGB values from BMP Pin
Cyberizen13-Dec-03 1:00
Cyberizen13-Dec-03 1:00 
GeneralRe: getting RGB values from BMP Pin
Monty213-Dec-03 2:02
Monty213-Dec-03 2:02 
Generalfile execution,"open with" Pin
thes3cr3t113-Dec-03 0:58
thes3cr3t113-Dec-03 0:58 
GeneralRe: file execution,"open with" Pin
Michael P Butler13-Dec-03 2:24
Michael P Butler13-Dec-03 2:24 
GeneralRe: file execution,"open with" Pin
thes3cr3t113-Dec-03 2:52
thes3cr3t113-Dec-03 2:52 
GeneralRe: file execution,"open with" Pin
Anonymous13-Dec-03 6:20
Anonymous13-Dec-03 6:20 
GeneralRe: file execution,"open with" Pin
thes3cr3t113-Dec-03 8:56
thes3cr3t113-Dec-03 8:56 
Generalstring Hex to int Pin
Monty213-Dec-03 0:38
Monty213-Dec-03 0:38 
GeneralRe: string Hex to int Pin
Michael Dunn13-Dec-03 5:25
sitebuilderMichael Dunn13-Dec-03 5:25 
QuestionHow Can I determine the Connection State of My Local System? Pin
mfc_surfer13-Dec-03 0:35
mfc_surfer13-Dec-03 0:35 
AnswerRe: How Can I determine the Connection State of My Local System? Pin
Michael Dunn13-Dec-03 5:27
sitebuilderMichael Dunn13-Dec-03 5:27 
GeneralReading Outlook pst files Pin
Waleed Zedan12-Dec-03 22:15
Waleed Zedan12-Dec-03 22:15 
GeneralProgramming for Macintosh in visual c++. Pin
Atif Mushtaq12-Dec-03 22:06
Atif Mushtaq12-Dec-03 22:06 
GeneralRe: Programming for Macintosh in visual c++. Pin
Michael P Butler13-Dec-03 2:30
Michael P Butler13-Dec-03 2:30 
GeneralUNIX Gurus Pin
Jagadeesh VN12-Dec-03 20:59
Jagadeesh VN12-Dec-03 20:59 
GeneralGot the thread Handle, But still!!! Pin
Jagadeesh VN12-Dec-03 21:06
Jagadeesh VN12-Dec-03 21:06 
GeneralRe: UNIX Gurus Pin
Johnny ²12-Dec-03 22:03
Johnny ²12-Dec-03 22:03 

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.