Author |
Topic  |
graphman
  
259 Posts |
Posted - Jun 06 2012 : 17:08:51
|
Can I use
imageenvect1.LegacyBitmap := true;
after
LoadFromFile ??? |
 |
|
fab
   
1310 Posts |
Posted - Jun 07 2012 : 09:40:26
|
Yes, you can. It will use TBitmap to store the image loaded with LoadFromFile. |
 |
|
graphman
  
259 Posts |
Posted - Jun 07 2012 : 10:43:39
|
Have you received (tested) my file? |
 |
|
fab
   
1310 Posts |
Posted - Jun 07 2012 : 12:33:00
|
Yes, I received it. The problem is that the image is too big and it cannot be converted to TBitmap (and RGB). |
 |
|
graphman
  
259 Posts |
Posted - Jun 07 2012 : 13:56:08
|
Is there solution to combine annotations with background for this image? |
 |
|
fab
   
1310 Posts |
Posted - Jun 07 2012 : 23:41:15
|
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. |
 |
|
graphman
  
259 Posts |
Posted - Jun 08 2012 : 08:00:13
|
Without changing LegacyBitmap ? Can you inform me about new minor release? I'll purchasi this new version. |
 |
|
fab
   
1310 Posts |
Posted - Jun 08 2012 : 12:32:41
|
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. |
 |
|
graphman
  
259 Posts |
Posted - Jun 09 2012 : 01:55:50
|
With new version I shoul use also ... ?
imageenvect1.LegacyBitmap := true; imageenvect1.CopyObjectsToBack(); imageenvect1.LegacyBitmap := false; |
 |
|
fab
   
1310 Posts |
Posted - Jun 10 2012 : 22:51:53
|
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. |
 |
|
graphman
  
259 Posts |
Posted - Jul 13 2012 : 06:26:14
|
Is new version available? (with new feature) |
 |
|
xequte
    
39053 Posts |
|
graphman
  
259 Posts |
Posted - Jul 15 2012 : 03:27:14
|
This topic is Locked and impossible to subscribe |
 |
|
xequte
    
39053 Posts |
|
graphman
  
259 Posts |
Posted - Apr 22 2013 : 17:19:02
|
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 |
 |
|
fab
   
1310 Posts |
Posted - Apr 23 2013 : 23:01:00
|
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.
|
 |
|
graphman
  
259 Posts |
Posted - Apr 24 2013 : 03:54:11
|
No. Background is black-and-white Reason to use CopyObjectsToBack(true, true, FALSE); is to prevent image converting to 24 bit at combining |
 |
|
graphman
  
259 Posts |
Posted - Apr 24 2013 : 05:28:17
|
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(); } //--------------------------------------------------------------------------- |
 |
|
fab
   
1310 Posts |
|
Topic  |
|