PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Image creation
http://forum.pdfsharp.com/viewtopic.php?f=2&t=2053
Page 1 of 1

Author:  gastan [ Fri Jun 15, 2012 9:40 am ]
Post subject:  Image creation

Hi

I am generating my own bar like this:
System.Drawing.Image image = new Bitmap(dx, dy);
then saving it to file and including in PDF like this:

MigraDoc.DocumentObjectModel.Shapes.Image bar = doc.LastSection.AddImage(GetImageFileName(1,false));

obviously, it is making generation slow, and problematic in multithreading site.
Is there a way to insert System.Drawing.Image directly from memory, without saving it?

best regards

--G

Author:  gastan [ Fri Jun 15, 2012 5:21 pm ]
Post subject:  Re: Image creation

anybody?

I found function
MigraDoc.DocumentObjectModel.Shapes.Image bar = doc.LastSection.Add(MigraDoc.DocumentObjectModel.Shapes.Image)
but I have no clue how to get MigraDoc.DocumentObjectModel.Shapes.Image from Image
:(
please, I googled here and did not find anything

Author:  () => true [ Sat Jun 16, 2012 8:56 am ]
Post subject:  Re: Image creation

Hi!

See here:
viewtopic.php?p=2804#p2804

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/