ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Printing Image including Labels, Memos, Etc...
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Tusty

Germany
4 Posts

Posted - Feb 12 2013 :  07:59:24  Show Profile  Reply
Is it Possible to Print the Image inlcuding the Memos on it?

w2m

USA
1990 Posts

Posted - Feb 12 2013 :  08:18:09  Show Profile  Reply
You have to temporarily merge the objects into the background image then print. After printing restore the objects:

procedure TForm1.Print1Click(Sender: TObject);
begin
  // Save the image with vectorial objects
  ImageEnVect1.Proc.SaveUndo;
  // Merge vectorial objects with the background image
  ImageEnVect1.CopyObjectsToBack(True);
  // Do print preview
  ImageEnVect1.IO.DoPrintPreviewDialog();
  // Restore objects from the merge
  ImageEnVectPreview1.Proc.Undo;
end;

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

Tusty

Germany
4 Posts

Posted - Feb 13 2013 :  00:06:30  Show Profile  Reply
Hey... THX 4 your Quick Answer...
It Works, but not in that way i need.

The Memo i have put into the Picture is a Yellow Memo with Text in it. Like a Notice /Post It...

After Clicking on Print,the meme is Printed out as a Black square.
The Text isnt readable...
Go to Top of Page

xequte

38616 Posts

Posted - Feb 13 2013 :  01:14:39  Show Profile  Reply
Hi

Does it look correct in the Print Preview?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Tusty

Germany
4 Posts

Posted - Feb 13 2013 :  23:34:42  Show Profile  Reply
Hi,

No, the Printview shows only the black square to...

Do you want some Screenshots?
Go to Top of Page

xequte

38616 Posts

Posted - Feb 16 2013 :  13:02:05  Show Profile  Reply
It sounds like a palette issue. Have you loaded a monochrome image into the background, for example?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Tusty

Germany
4 Posts

Posted - Feb 17 2013 :  23:50:39  Show Profile  Reply
There is no Image Loaded...
The Memo is putted in with the following COde..



THISFORM.img1.SetObjectProperty(-1,"SOFTSHADOW",1)
THISFORM.img1.SetObjectProperty(-1,"BRUSHSTYLE",0)
THISFORM.img1.SetObjectProperty(-1,"BRUSHCOLOR","255,255,0")
THISFORM.img1.SetObjectProperty(-1,"MEMOBORDERCOLOR","105,105,105")
THISFORM.img1.SetObjectProperty(-1,"MEMOMARGINTOP","2")
THISFORM.img1.SetObjectProperty(-1,"MEMOMARGINLEFT","2")
THISFORM.img1.SetObjectProperty(-1,"TEXTAUTOSIZE","1")
THISFORM.img1.SetObjectProperty(-1,"FONTHEIGHT","50")
THISFORM.img1.SetObjectProperty(-1,"FONTQUALITY","1")
THISFORM.img1.SetObjectProperty(-1,"MOVEABLE","1")
THISFORM.img1.SetObjectProperty(-1,"SELECTABLE","1")
THISFORM.img1.setmouseInteractProperty("PUTMEMO","1")


EDIT:

Ohhh now i know what you mean...
It's an Black/White tiff...
If i load a colored png, the memos are okay in Print...


So how can i fix that to a black/white tiff?
Go to Top of Page

w2m

USA
1990 Posts

Posted - Feb 18 2013 :  08:06:40  Show Profile  Reply
I do not think it will work with Black & White.
You could try:

1. convert the image to 24-bit
2. call ImageEnView1.Proc.ConvertToGray
3. add the colored memo object
4. use my code to do the preview

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: