Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Opacity Control Pin
Cubzfan21-Jun-06 7:32
Cubzfan21-Jun-06 7:32 
GeneralRe: Opacity Control Pin
led mike21-Jun-06 7:41
led mike21-Jun-06 7:41 
GeneralRe: Opacity Control Pin
Cubzfan21-Jun-06 7:51
Cubzfan21-Jun-06 7:51 
GeneralRe: Opacity Control Pin
led mike21-Jun-06 7:59
led mike21-Jun-06 7:59 
GeneralRe: Opacity Control Pin
Cubzfan21-Jun-06 8:07
Cubzfan21-Jun-06 8:07 
GeneralRe: Opacity Control Pin
led mike21-Jun-06 9:29
led mike21-Jun-06 9:29 
QuestionRe: Opacity Control Pin
Dustin Metzgar21-Jun-06 8:33
Dustin Metzgar21-Jun-06 8:33 
AnswerRe: Opacity Control Pin
Cubzfan21-Jun-06 9:31
Cubzfan21-Jun-06 9:31 
GeneralRe: Opacity Control Pin
Dustin Metzgar21-Jun-06 10:04
Dustin Metzgar21-Jun-06 10:04 
GeneralRe: Opacity Control Pin
Cubzfan21-Jun-06 10:10
Cubzfan21-Jun-06 10:10 
GeneralRe: Opacity Control Pin
Alexander Wiseman21-Jun-06 11:59
Alexander Wiseman21-Jun-06 11:59 
GeneralRe: Opacity Control Pin
Cubzfan21-Jun-06 12:17
Cubzfan21-Jun-06 12:17 
GeneralRe: Opacity Control Pin
Alexander Wiseman21-Jun-06 13:11
Alexander Wiseman21-Jun-06 13:11 
GeneralRe: Opacity Control Pin
Cubzfan21-Jun-06 13:52
Cubzfan21-Jun-06 13:52 
GeneralRe: Opacity Control Pin
Cubzfan22-Jun-06 3:58
Cubzfan22-Jun-06 3:58 
GeneralRe: Opacity Control Pin
Dustin Metzgar22-Jun-06 4:24
Dustin Metzgar22-Jun-06 4:24 
GeneralRe: Opacity Control Pin
Cubzfan22-Jun-06 4:40
Cubzfan22-Jun-06 4:40 
GeneralRe: Opacity Control Pin
Dustin Metzgar22-Jun-06 5:00
Dustin Metzgar22-Jun-06 5:00 
GeneralRe: Opacity Control Pin
Alexander Wiseman22-Jun-06 5:08
Alexander Wiseman22-Jun-06 5:08 
JokeRe: Opacity Control Pin
Dustin Metzgar22-Jun-06 5:14
Dustin Metzgar22-Jun-06 5:14 
GeneralRe: Opacity Control Pin
Alexander Wiseman22-Jun-06 5:24
Alexander Wiseman22-Jun-06 5:24 
GeneralRe: Opacity Control Pin
Cubzfan22-Jun-06 5:11
Cubzfan22-Jun-06 5:11 
GeneralRe: Opacity Control Pin
Dustin Metzgar22-Jun-06 5:35
Dustin Metzgar22-Jun-06 5:35 
GeneralRe: Opacity Control Pin
Dustin Metzgar22-Jun-06 6:48
Dustin Metzgar22-Jun-06 6:48 
QuestionGraph to image Pin
Abel Castillo21-Jun-06 6:03
Abel Castillo21-Jun-06 6:03 
Hi,

With images from files or from a database I don't have problems but when I work with images created starting from an object "Graphics" the images don't survive. How can I save this Bitmap?, I tried with:

...
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap( widthBmp, heightBmp );
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage( bmp );
...
MemoryStream stream = new MemoryStream();
bmp.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] buffer = new Byte[stream.Length];
stream.Position = 0;
stream.Read(buffer, 0, (int) buffer.Length);
...
buffer = null;
stream.Close();

but the image always is black...

Thanks a lot


Abel Castillo

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.