P
pixel
hi
i know there is no ExtFloodFill in GDI+
so i decided to use GDI
but there is something that i don't understand
when i got DC from ie PictureBox
like this
Graphics g = PictureBox.CreateGraphics();
IntPtr hdc = g.GetHdc();
then ExtFloodFill on this hdc works perfectly ok
but when i got hdc from bitmap
like this
Image i = new Bitmap(100, 100);
Graphics g = Graphics.FromImage(i);
IntPtr hdc = g.GetHdc();
then ExtFloodFill fills whole bitmap
ofcourse on both graphics there is circle or something like this!!!
and ofcourse other GDI functions work on both hdc
ie SetPixel or Rectangle works perfectly ok
so why ExtFloodFill has different products???
br
pixel
i know there is no ExtFloodFill in GDI+
so i decided to use GDI
but there is something that i don't understand
when i got DC from ie PictureBox
like this
Graphics g = PictureBox.CreateGraphics();
IntPtr hdc = g.GetHdc();
then ExtFloodFill on this hdc works perfectly ok
but when i got hdc from bitmap
like this
Image i = new Bitmap(100, 100);
Graphics g = Graphics.FromImage(i);
IntPtr hdc = g.GetHdc();
then ExtFloodFill fills whole bitmap
ofcourse on both graphics there is circle or something like this!!!
and ofcourse other GDI functions work on both hdc
ie SetPixel or Rectangle works perfectly ok
so why ExtFloodFill has different products???
br
pixel