![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi all i would like to draw a rectangular region into a Bitmap. how can i do this? assaf |
#3
| |||
| |||
|
|
hi all i would like to draw a rectangular region into a Bitmap. how can i do this? assaf |
#4
| |||
| |||
|
|
Create a Graphic object using System.Drawing.Graphics.FromImage() then you'll have lots of methods to use. "assaf" <assafwo (AT) hotmail (DOT) com> 在郵件 news:%23wnlCtRrEHA.1992 (AT) TK2MSFTNGP09 (DOT) phx.gbl 中撰寫... hi all i would like to draw a rectangular region into a Bitmap. how can i do this? assaf |
#5
| |||
| |||
|
|
Provided the bitmap uses a non indexed pixel format: Graphics g=Graphics.FromImage(theBitmap); g.FillRectangle(Brushes.Red,10,10,100,100); The image now has a red square on it... -- Bob Powell [MVP] Visual C#, System.Drawing Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml "assaf" <assafwo (AT) hotmail (DOT) com> wrote in message news:%23wnlCtRrEHA.1992 (AT) TK2MSFTNGP09 (DOT) phx.gbl... hi all i would like to draw a rectangular region into a Bitmap. how can i do this? assaf |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |