Click here to Skip to main content
15,896,154 members

Comments by sunilsvsnlr2007 (Top 3 by date)

sunilsvsnlr2007 7-Oct-13 11:24am View    
Thank you very much
sunilsvsnlr2007 7-Oct-13 10:20am View    
Can i know how...

Do you able to provide sample code.....
sunilsvsnlr2007 19-Jun-12 10:04am View    
hi,

but bitmap image creation code you must need to Write in _paint() method of the any control like panel,form etc and here is the code

Image bmp = new Bitmap(200, 40, System.Drawing.Imaging.PixelFormat.Format16bppArgb1555);

using (Graphics g = Graphics.FromImage(bmp))
{
g.FillRectangle(Brushes.White, 0, 0, Width, Height);

panel1_Paint(null, new PaintEventArgs(g, this.ClientRectangle));

bmp.Save(file, System.Drawing.Imaging.ImageFormat.Jpeg);
}