Click here to Skip to main content
15,913,303 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding Text to DIB Pin
Naveen_mah16-May-05 20:56
Naveen_mah16-May-05 20:56 
GeneralRe: Adding Text to DIB Pin
Christian Graus17-May-05 12:51
protectorChristian Graus17-May-05 12:51 
GeneralRe: Adding Text to DIB Pin
Naveen_mah17-May-05 14:18
Naveen_mah17-May-05 14:18 
GeneralRe: Adding Text to DIB Pin
Christian Graus17-May-05 14:24
protectorChristian Graus17-May-05 14:24 
GeneralRe: Adding Text to DIB Pin
Naveen_mah17-May-05 18:49
Naveen_mah17-May-05 18:49 
GeneralRe: Adding Text to DIB Pin
Christian Graus17-May-05 18:51
protectorChristian Graus17-May-05 18:51 
GeneralRe: Adding Text to DIB Pin
Naveen_mah18-May-05 18:14
Naveen_mah18-May-05 18:14 
GeneralRe: Adding Text to DIB Pin
Christian Graus18-May-05 18:55
protectorChristian Graus18-May-05 18:55 
Naveen_mah wrote:
HDC hdc = GetDC(hWnd);

Why ? You realise this means your HDC will have the bit depth of your PC, you won't control it ?

Naveen_mah wrote:
FILE * fp = NULL;

Man, C file reading is ugly....

Naveen_mah wrote:
DIBSECTION dib;
GetObject(hBitmap,sizeof(DIBSECTION),&dib);
/// Dont get any data in dib.dsBm.bmBits


The data is in pbase, you get it out of calling CreateDIBSection.


Naveen_mah wrote:
My bitmap is 1 bit bitmap and is top down bitmap 2275x3300 (file size 928 KB)

How on earth do you hope to create a watermark in a 1 bit bitmap ? If each bit is just on or off, one of two colours, then you just want to write text over it, you don't want a watermark at all. A watermark is a generally invisible signature that's blended into an image. There's no blending when you have only two colours.

Perhaps you need to redefine what you're trying to do here ? If you're using anything less than 16 bit, you need to use GDI functions, because keeping track of palettes and stuff is just too painful.


Christian Graus - Microsoft MVP - C++
GeneralCreating a dialog based application... Pin
elvis890016-May-05 11:07
elvis890016-May-05 11:07 
GeneralRe: Creating a dialog based application... Pin
Ravi Bhavnani16-May-05 12:01
professionalRavi Bhavnani16-May-05 12:01 
GeneralRe: Creating a dialog based application... Pin
ucc80116-May-05 20:17
ucc80116-May-05 20:17 
Generalprint screen Pin
gobar16-May-05 10:59
gobar16-May-05 10:59 
GeneralRe: print screen Pin
jc0dex16-May-05 11:46
jc0dex16-May-05 11:46 
GeneralRe: print screen Pin
Ravi Bhavnani16-May-05 12:09
professionalRavi Bhavnani16-May-05 12:09 
GeneralRe: print screen Pin
ucc80116-May-05 20:24
ucc80116-May-05 20:24 
GeneralOk. 2 Dumbest questions. Pin
CherezZaboro16-May-05 9:25
CherezZaboro16-May-05 9:25 
GeneralRe: Ok. 2 Dumbest questions. Pin
James R. Twine16-May-05 10:52
James R. Twine16-May-05 10:52 
GeneralRe: Ok. 2 Dumbest questions. Pin
Ryan Binns16-May-05 17:56
Ryan Binns16-May-05 17:56 
GeneralFindFirstFile and CFileFind Pin
Anonymous16-May-05 9:07
Anonymous16-May-05 9:07 
GeneralRe: FindFirstFile and CFileFind Pin
Chris Losinger16-May-05 9:22
professionalChris Losinger16-May-05 9:22 
GeneralRe: FindFirstFile and CFileFind Pin
David Crow16-May-05 10:32
David Crow16-May-05 10:32 
GeneralRe: FindFirstFile and CFileFind Pin
Blake Miller17-May-05 5:20
Blake Miller17-May-05 5:20 
GeneralRe: FindFirstFile and CFileFind Pin
David Crow17-May-05 5:30
David Crow17-May-05 5:30 
GeneralTimestamp challenges Pin
rexpiper16-May-05 8:58
rexpiper16-May-05 8:58 
GeneralRe: Timestamp challenges Pin
David Crow16-May-05 10:39
David Crow16-May-05 10:39 

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.