Heading to the Printing United trade show? Schedule a meeting with our representatives.
Welcome Guest! You need to login or register to make posts.



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

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...


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

Rank: Advanced Member

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

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

[Visual Basic]
Dim stream As New System.IO.MemoryStream
bitmap.Save(stream, New Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(70, False))
Dim imageData As Byte() = stream.GetBuffer()

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.