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
 Big file, text annotation and combining with backg
 New Topic  Reply to Topic
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

graphman

259 Posts

Posted - Jun 06 2012 :  17:08:51  Show Profile  Reply
Can I use

imageenvect1.LegacyBitmap := true;

after

LoadFromFile
???
Go to Top of Page

fab

1310 Posts

Posted - Jun 07 2012 :  09:40:26  Show Profile  Reply
Yes, you can. It will use TBitmap to store the image loaded with LoadFromFile.
Go to Top of Page

graphman

259 Posts

Posted - Jun 07 2012 :  10:43:39  Show Profile  Reply
Have you received (tested) my file?
Go to Top of Page

fab

1310 Posts

Posted - Jun 07 2012 :  12:33:00  Show Profile  Reply
Yes, I received it.
The problem is that the image is too big and it cannot be converted to TBitmap (and RGB).
Go to Top of Page

graphman

259 Posts

Posted - Jun 07 2012 :  13:56:08  Show Profile  Reply
Is there solution to combine annotations with background for this image?
Go to Top of Page

fab

1310 Posts

Posted - Jun 07 2012 :  23:41:15  Show Profile  Reply
A TCanvas object (required by drawing primitives) is necessary, and unfortunately this is available only in TBitmap, that is not available for a RGB 18724x13244 image.
Anyway next minor release will allow drawing into BW images, without RGB conversion, as experimental feature.
Go to Top of Page

graphman

259 Posts

Posted - Jun 08 2012 :  08:00:13  Show Profile  Reply
Without changing LegacyBitmap ?
Can you inform me about new minor release?
I'll purchasi this new version.
Go to Top of Page

fab

1310 Posts

Posted - Jun 08 2012 :  12:32:41  Show Profile  Reply
TBitmap is still necessary (due the TCanvas), so legacy bitmap cannot be maintained. Anyway pixel format is maintained to Black/White allowing to process big bitmaps.
Go to Top of Page

graphman

259 Posts

Posted - Jun 09 2012 :  01:55:50  Show Profile  Reply
With new version I shoul use also ... ?


imageenvect1.LegacyBitmap := true;
imageenvect1.CopyObjectsToBack();
imageenvect1.LegacyBitmap := false;
Go to Top of Page

fab

1310 Posts

Posted - Jun 10 2012 :  22:51:53  Show Profile  Reply
No, it is done automatically. For example, you will be able to do:

imageenvect1.LegacyBitmap:=false;
imageenvect1.IO.LoadFromFile('652-100-000.TIF');
imageenvect1.AddNewObject(iekline, rect(10,10,100,100), clBlack); // just an example
imageenvect1.CopyObjectsToBack(true, true, false); // last parameter avoid to change from BW to RGB
imageenvect1.RemoveAllObjects();

Note last parameter of CopyObjectsToBack (available from next release) avoid CopyObjectsToBack to convert from BW to RGB.
Note also that you will be able to use only colors like clBlack or clWhite for objects, of course.
Go to Top of Page

graphman

259 Posts

Posted - Jul 13 2012 :  06:26:14  Show Profile  Reply
Is new version available? (with new feature)
Go to Top of Page

xequte

39053 Posts

Posted - Jul 14 2012 :  15:05:40  Show Profile  Reply
Hi

Not yet, but it is not far off. Please subscribe to the following topic to receive an automatic email notification:

http://www.imageen.com/ieforum/topic.asp?TOPIC_ID=215



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

graphman

259 Posts

Posted - Jul 15 2012 :  03:27:14  Show Profile  Reply
This topic is Locked and impossible to subscribe
Go to Top of Page

xequte

39053 Posts

Posted - Jul 16 2012 :  02:37:19  Show Profile  Reply
Please try it again now.



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

graphman

259 Posts

Posted - Apr 22 2013 :  17:19:02  Show Profile  Reply
New bug with
ImageEnView1->CopyObjectsToBack(true, true, false)

after this command all image object are stretched

With
ImageEnView1->CopyObjectsToBack(true, true, true) - all is OK
Go to Top of Page

fab

1310 Posts

Posted - Apr 23 2013 :  23:01:00  Show Profile  Reply
Sorry, I cannot replicate. Tried:

ImageEnVect1.AddNewObject(iekBox, Rect(10, 10, 100, 100), clRed);
ImageEnVect1.CopyObjectsToBack(true, true, false);
ImageEnVect1.RemoveAllObjects();

Of course it assumes you have an RGB (24 bit) bitmap, otherwise it is no-sense to set last parameter to False.
Go to Top of Page

graphman

259 Posts

Posted - Apr 24 2013 :  03:54:11  Show Profile  Reply
No. Background is black-and-white
Reason to use
CopyObjectsToBack(true, true, FALSE);
is to prevent image converting to 24 bit at combining
Go to Top of Page

graphman

259 Posts

Posted - Apr 24 2013 :  05:28:17  Show Profile  Reply
my test
=======

file.tif is there
www.graphicregion.com/file.tif


//---------------------------------------------------------------------------
void __fastcall TForm1::ButtonOpenFileClick(TObject *Sender)
{
ImageEnVect1->IO->LoadFromFile("file.tif");
ImageEnVect1->IO->Params->ImagingAnnot->CopyToTImageEnVect(ImageEnVect1);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::ButtonCopyToBackClick(TObject *Sender)
{
ImageEnVect1->CopyObjectsToBack(true, true, false);
ImageEnVect1->RemoveAllObjects();
}
//---------------------------------------------------------------------------
Go to Top of Page

fab

1310 Posts

Posted - Apr 25 2013 :  00:10:52  Show Profile  Reply
Continuing at:
http://www.imageen.com/ieforum/topic.asp?TOPIC_ID=1011
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
Jump To: