Click here to Skip to main content
15,889,266 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem about bitmap in Visual Studio C Sharp.NET ? Pin
zeeShan anSari27-Jun-07 3:33
zeeShan anSari27-Jun-07 3:33 
QuestionDisplaying data in two grids from three tables Pin
wasife27-Jun-07 1:54
wasife27-Jun-07 1:54 
AnswerRe: Displaying data in two grids from three tables Pin
Dave Sexton27-Jun-07 2:36
Dave Sexton27-Jun-07 2:36 
QuestionSet Encoding for Stream Writer Pin
t4ure4n27-Jun-07 1:07
t4ure4n27-Jun-07 1:07 
AnswerRe: Set Encoding for Stream Writer Pin
leppie27-Jun-07 1:10
leppie27-Jun-07 1:10 
GeneralRe: Set Encoding for Stream Writer Pin
t4ure4n27-Jun-07 1:16
t4ure4n27-Jun-07 1:16 
AnswerRe: Set Encoding for Stream Writer Pin
Guffa27-Jun-07 1:21
Guffa27-Jun-07 1:21 
QuestionGraphics to File Pin
pmartike27-Jun-07 0:58
pmartike27-Jun-07 0:58 
How to save into a file a graphics?
I tried this but not working Frown | :(

Graphics g = pictureBox1.CreateGraphics();
Pen p = new Pen(Color.Black);
g.DrawRectangle(p, 1, 1, 100, 20);
Bitmap bit = new Bitmap(482, 150, g);
bit.Save("c:\\image.bmp");

And if i draw something into a picturebox, how to save it into a file?
I tried this but not working Frown | :(

Graphics g = pictureBox1.CreateGraphics();
Pen p = new Pen(Color.Black);
gg.DrawRectangle(p, 1, 1, 100, 50);
gg.DrawRectangle(p, 2, 10, 50, 30);
Bitmap bb = new Bitmap(pictureBox1.Image);
bb.Save("c:\\image.bmp");


Help me please!

http://pmartike.deviantart.com/

AnswerRe: Graphics to File Pin
Guffa27-Jun-07 1:27
Guffa27-Jun-07 1:27 
GeneralRe: Graphics to File Pin
pmartike27-Jun-07 23:25
pmartike27-Jun-07 23:25 
AnswerRe: Graphics to File Pin
Christian Graus27-Jun-07 1:32
protectorChristian Graus27-Jun-07 1:32 
AnswerRe: Graphics to File Pin
zeeShan anSari27-Jun-07 3:56
zeeShan anSari27-Jun-07 3:56 
GeneralRe: Graphics to File Pin
pmartike27-Jun-07 23:40
pmartike27-Jun-07 23:40 
AnswerRe: Graphics to File Pin
Hesham Yassin27-Jun-07 8:10
Hesham Yassin27-Jun-07 8:10 
QuestionWhen shd we make function static in C# Pin
vikasviswan27-Jun-07 0:46
vikasviswan27-Jun-07 0:46 
AnswerRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 0:50
Vikram A Punathambekar27-Jun-07 0:50 
QuestionRe: When shd we make function static in C# Pin
vikasviswan27-Jun-07 0:54
vikasviswan27-Jun-07 0:54 
AnswerRe: When shd we make function static in C# Pin
Martin#27-Jun-07 1:20
Martin#27-Jun-07 1:20 
AnswerRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 2:30
Vikram A Punathambekar27-Jun-07 2:30 
GeneralRe: When shd we make function static in C# Pin
Martin#27-Jun-07 3:30
Martin#27-Jun-07 3:30 
GeneralRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 4:23
Vikram A Punathambekar27-Jun-07 4:23 
GeneralRe: When shd we make function static in C# Pin
Colin Angus Mackay27-Jun-07 5:36
Colin Angus Mackay27-Jun-07 5:36 
GeneralRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 18:12
Vikram A Punathambekar27-Jun-07 18:12 
AnswerRe: When shd we make function static in C# Pin
Christian Graus27-Jun-07 1:33
protectorChristian Graus27-Jun-07 1:33 
JokeRe: When shd we make function static in C# Pin
Dave Sexton27-Jun-07 2:40
Dave Sexton27-Jun-07 2:40 

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.