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
 Black-and-white image and color annotations

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
graph_man Posted - Jun 28 2018 : 06:22:07
Is it possible to print color annotations without converting image to color?
Black-and-white image has big size after converting into color and out of memory messages appear.
20   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 29 2018 : 16:42:52
I cannot think of any good reason you cannot access the helper methods from BCB 2010, but you can print the TIEBitmap as follows:

var
  io: TImageEnIO;
begin

  ...

  io := TImageEnIO.CreateFromBitmap( MyIEBitmap );
  try
    io.PrintingFilterOnSubsampling := SubsampleFilter;
    io.PrintImage( PrtCanvas,
                   MarginLeft, MarginTop, MarginRight, MarginBottom,
                   VerticalPos, HorizontalPos,
                   Size, SpecWidth, SpecHeight,
                   GammaCorrection, False, False,
                   Heading, HeadingHeight, HeadingColor );
  finally
    io.Free;
  end;
end;


Nigel
Xequte Software
www.imageen.com
graph_man Posted - Oct 29 2018 : 15:21:24
1)
Remove one.
The same result.

2)
After reinstalling component - the same error message.
w2m Posted - Oct 29 2018 : 11:52:17
Remove one.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - Oct 29 2018 : 11:36:39
...\ImageEn\Source
and
...\ImageEn\Delphi2010

Both files are the same.
w2m Posted - Oct 29 2018 : 11:34:27
You probably have more than one copy of iexHelperFunctions on your pc. Try to find how many you have and remove the older versions. If there is only one copy then contact Nigel.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - Oct 29 2018 : 11:28:52
There is procedure TIEBitmapHelper.PrintImage(...
w2m Posted - Oct 29 2018 : 11:17:22
I have no answer. Contact Nigel.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - Oct 29 2018 : 11:15:13
I use the latest version
w2m Posted - Oct 29 2018 : 11:02:52
is the procedure in iexHelperFunctions, in other words, open iexHelperFunctions and look to see if 'PrintImage' is in your copy of iexHelperFunctions.

If it is not present upgrade to recent version. What version are you using?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - Oct 29 2018 : 10:44:22
TIEBitmap *IEBitmap1 = new TIEBitmap();

and

IEBitmap1->PrintImage(MyPrinter->Canvas, 0, 0, 0, 0, ievpCenter, iehpCenter, iesFitToPage, 0, 0, 1);
w2m Posted - Oct 29 2018 : 10:27:40
Is IEBitmap1 defined as
var
IEBitmap1: TIEBitmap?

If it is defined as a TIEBitmap try
IEBitmap1.PrintImage(Printer.Canvas, 0, 0, 0, 0, ievpCenter, iehpCenter, iesNormal, 0, 0, 1);

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - Oct 29 2018 : 10:22:37
I'm trying to use

#include "iexHelperFunctions.hpp"

IEBitmap1->PrintImage(.....);

and see

[BCC32 Error]E2316 'PrintImage' is not a member of 'TIEBitmap'
xequte Posted - Oct 24 2018 : 18:24:11
Yes, but in both those scenarios, the image and printer canvas sizes do not change. The only thing that changes is an extra TIEBitmap is created and assigned.

Please try creating a temporary bitmap using DrawObjectsToBitmap and printing that instead.

https://www.imageen.com/help/TImageEnVect.DrawObjectsToBitmap.html

Nigel
Xequte Software
www.imageen.com
graph_man Posted - Oct 24 2018 : 05:57:57
Maybe in the second case the size of the canvas is larger than the original image and therefore an error appears?
xequte Posted - Oct 23 2018 : 20:30:20
Hi

> What is the difference of printing color bitmap with a size of
> 10,000x10,000 pixels with the option
> PrintAnnotations = FALSE
> and
> black-and-white image with a size of 10,000x10,000 pixels with
> color annotations with the option
> PrintAnnotations = TRUE

In the first case, it prints the image directly.

In the second, a copy of the image is created, its pixelformat upscaled to 24bit and annotations drawn.



Nigel
Xequte Software
www.imageen.com
w2m Posted - Oct 23 2018 : 13:41:43
Look in the help file.
If true and the image contains imaging or ImageEn annotations they will be printed

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - Oct 23 2018 : 13:31:49
What is the difference of printing color bitmap with a size of 10,000x10,000 pixels with the option
PrintAnnotations = FALSE
and
black-and-white image with a size of 10,000x10,000 pixels with color annotations with the option
PrintAnnotations = TRUE
???
graph_man Posted - Oct 23 2018 : 04:41:09
I use
ImageEnVect1->IO->PrintImage(MyPrinter->Canvas, 0, 0, 0, 0, ievpCenter ,
iehpCenter, iesFitToPage, 0, 0,
1, TRUE, false, "", 5, clBlack);
xequte Posted - Oct 22 2018 : 22:51:36
Hi

I mean when you use your example code above. I presume it works without error when you change to

ImageEnVect1->IO->PrintImage(MyPrinter->Canvas, 0, 0, 0, 0, ievpCenter ,
iehpCenter, iesFitToPage, 0, 0,
1, FALSE, false, "", 5, clBlack);

Maybe you can create a temporary bitmap using DrawObjectsToBitmap and print that instead.

https://www.imageen.com/help/TImageEnVect.DrawObjectsToBitmap.html

Nigel
Xequte Software
www.imageen.com
graph_man Posted - Oct 22 2018 : 17:26:27
> So I presume you don't get an error when you set the PrintAnnotations parameter to false?

There are no annotations after combining.
I delete them.