Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 9:07
Niklas L6-Jun-10 9:07 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 10:33
ForNow6-Jun-10 10:33 
GeneralRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 10:59
Niklas L6-Jun-10 10:59 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 11:20
ForNow6-Jun-10 11:20 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 11:30
ForNow6-Jun-10 11:30 
GeneralRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 11:42
Niklas L6-Jun-10 11:42 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 11:48
ForNow6-Jun-10 11:48 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 17:42
ForNow6-Jun-10 17:42 
Filled the entire bitmap all white


from the MSDN doc says that area will be filled with the current brush till the color boudry

I would think boudry is the RGB of the yellow arrow

Here is the code

C#
CBitmap *bm = new CBitmap;           // Bitmap Object

 bm->LoadBitmap((UINT) IDD_BITMAP);             // LOAD THE ARROW

 CDC *cdcwindow = this->GetDC();

 CDC cdcimage;

  cdcimage.CreateCompatibleDC(cdcwindow);

   CBitmap *oldbit = cdcimage.SelectObject(bm);

  cdcimage.SetDCBrushColor(RGB(125,125,125));

    clr = RGB(125,125,125);

  cdcimage.FloodFill(0,0,clr);

  bm = cdcimage.SelectObject(oldbit);



MFC Library Reference
CDC::FloodFill

Fills an area of the display surface with the current brush.

Copy
BOOL FloodFill(
int x,
int y,
COLORREF crColor
);

Parameters
x
Specifies the logical x-coordinate of the point where filling begins.

y
Specifies the logical y-coordinate of the point where filling begins.

crColor
Specifies the color of the boundary.

reading the doc on MSDN for Flood fill says it will fill the Color with the Current

brush
GeneralRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 20:48
Niklas L6-Jun-10 20:48 
GeneralRe: Bitblt Transparency question Pin
ForNow7-Jun-10 2:27
ForNow7-Jun-10 2:27 
QuestionAsynchronous sockets Pin
onyxbird5-Jun-10 19:06
onyxbird5-Jun-10 19:06 
AnswerRe: Asynchronous sockets Pin
Aescleal5-Jun-10 19:36
Aescleal5-Jun-10 19:36 
AnswerRe: Asynchronous sockets Pin
Moak6-Jun-10 8:06
Moak6-Jun-10 8:06 
GeneralRe: Asynchronous sockets Pin
onyxbird6-Jun-10 8:21
onyxbird6-Jun-10 8:21 
GeneralRe: Asynchronous sockets Pin
Moak6-Jun-10 10:13
Moak6-Jun-10 10:13 
GeneralRe: Asynchronous sockets Pin
onyxbird7-Jun-10 12:02
onyxbird7-Jun-10 12:02 
AnswerRe: Asynchronous sockets Pin
Mauro Leggieri6-Jun-10 9:11
Mauro Leggieri6-Jun-10 9:11 
GeneralRe: Asynchronous sockets Pin
onyxbird7-Jun-10 12:03
onyxbird7-Jun-10 12:03 
QuestionHow to Save Picture(Image) Pin
voo doo125-Jun-10 15:44
voo doo125-Jun-10 15:44 
AnswerRe: How to Save Picture(Image) [modified] Pin
Niklas L6-Jun-10 9:51
Niklas L6-Jun-10 9:51 
GeneralRe: How to Save Picture(Image) Pin
voo doo127-Jun-10 2:53
voo doo127-Jun-10 2:53 
GeneralRe: How to Save Picture(Image) Pin
Niklas L7-Jun-10 3:57
Niklas L7-Jun-10 3:57 
Questionhow to paint a bitmap to the dialog client dc from the memory dc Pin
Krauze5-Jun-10 14:54
Krauze5-Jun-10 14:54 
AnswerRe: how to paint a bitmap to the dialog client dc from the memory dc Pin
Niklas L6-Jun-10 11:15
Niklas L6-Jun-10 11:15 
QuestionHow to overlay Direct3d model in live webcam feed Pin
GreenGiant835-Jun-10 8:58
GreenGiant835-Jun-10 8:58 

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.