Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
katsumiliquer  
#1 Posted : Friday, January 21, 2005 6:11:00 AM(UTC)
katsumiliquer

Rank: Member

Groups: Member
Joined: 1/20/2005(UTC)
Posts: 4

anyone know of an equivalent method in 3.0 .net to the graphics mill 2.0 bitmap.savetomemory() method?

i'm trying to build a function that returns the image in memory. i thought it might be savestate() but that doesn't appear to do the job...

thanks!

Fedor  
#2 Posted : Friday, January 21, 2005 12:29:00 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
You can use following code:

[Visual Basic]

Code:
Dim stream As New System.IO.MemoryStream
bitmap.Save(stream, New Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(70, False))
Dim imageData As Byte() = stream.GetBuffer()

[C#]

Code:
System.IO.MemoryStream stream = new System.IO.MemoryStream();
bitmap.Save(stream, new Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(70, false));
byte[] imageData = stream.GetBuffer();

Edited by user Monday, December 24, 2007 4:16:02 PM(UTC)  | Reason: Not specified

Best regards,

Fedor Skvortsov

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.