This is a discussion on How to create an image from panel background Image within the C# Programming forums, part of the Software Development category; Hi all, I'm creating an user control. On there I'm drawing an image in it's on Paint ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all, I'm creating an user control. On there I'm drawing an image in it's on Paint method. And I add this user control in to a panel. I added two controls in that panel. That panel also have a background image. Now I need to create an image with the both of panel and user control images. How to do? Is any Idea?
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
| Sponsored Links |
| |||
| Hi, Here is sample coding... Code: Bitmap bmp = new Bitmap(panel1.Width, panel1.Height);
Rectangle rect = new Rectangle(0, 0, panel1.Width, panel1.Height);
panel1.DrawToBitmap(bmp, rect);
bmp.Save("test.jpg"); ![]()
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DPI of an Image | Anandavinayagam | C# Programming | 6 | 12-12-2008 05:53 AM |
| Convert image to other image format using CODEC in .NET 3.0 | Mramesh | C# Programming | 0 | 02-07-2008 03:33 AM |
| How to set background image for <td> using style property? | poornima | HTML, CSS and Javascript Coding Techniques | 6 | 01-31-2008 12:24 AM |
| How to create BMP thumbnail image in PHP? | Jeyaseelansarc | PHP Programming | 2 | 10-13-2007 01:05 AM |
| Can we capture the desktop background image programatically using c#? | mobilegeek | C# Programming | 1 | 07-20-2007 01:10 AM |