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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnVect Layer 0 jpg, Layer 1 png - Print Issue

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
andyhill Posted - Feb 14 2016 : 18:30:47
ImageEnVect: I have a image in layer 0.

Layer 1 contains a 32-bit png image with black text and is transparent via the alpha channel and stretched to fit the image over layer 0.

When I print the image it is entirely black:

Printer.BeginDoc;
ImageEnVect1.IO.PrintImagePos(Printer.Canvas, 0, 0, 8, 11);
Printer.EndDoc;

Is there a way to print both images as shown on the monitor without merging the layers so the image prints correctly?

I can not merge the two layers because layer 1 is stretched, but layer 0 is not stretched.

If I merge the layers, layer 1 becomes distorted and contains unreadable text.

Please advise

Andy
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 14 2016 : 22:32:25
Hi Andy

Have you tried printing as follows:

    with TImageEnView.Create(nil) do
    begin
      IEBitmap.Assign(ImageEnVect1.IEBitmap);
      ImageEnVect1.DrawObjectsToBitmap(IEBitmap);
      IO.PrintImage(Printer.Canvas, 0, 0, 0, 0, ievpCenter, iehpCenter, iesNormal);
      Free();
    end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com