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
 Add objects don't effect when save to files.

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
adisonx Posted - Sep 02 2019 : 02:39:56
After migrate from ImageEn 5 to ImageEn 8
when add new objects to image I can see objects on screen,but
when save to files object don't effect on file.
(My legacy code use ImageEnVect)
Example:
int hText = this->ImageEnVect->AddNewObject(true);
this->ImageEnVect->ObjKind[hText] = iekTEXT;
this->ImageEnVect->ObjText[hText] = "Hello";

I can see text "Hello" on screen,But when save to file the text didn't show.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 04 2019 : 03:25:10
Hi

You need to merge the objects to the background before saving. Otherwise you only save the background image:



// File | Save As...
procedure Tfmain.SaveAs1Click(Sender: TObject);
var
  filename:string;
begin
  filename:=ImageEnVect1.IO.ExecuteSaveDialog();
  if filename <> '' then
  begin
    // Store the image without vectorial objects
    ImageEnVect1.Proc.SaveUndo;
    // merge vectorial objects with the background image
    ImageEnVect1.CopyObjectsToBack(true);
    // save to disk
    ImageEnVect1.IO.SaveToFile(filename);
    // restore
    ImageEnvect1.Proc.Undo;
  end;
end;


Nigel
Xequte Software
www.imageen.com
adisonx Posted - Sep 03 2019 : 04:57:48
ImageEnVect->IO->SaveToFileJpeg("C:\\Test\\temp.jpg")
xequte Posted - Sep 02 2019 : 02:55:27
Hi

What is your saving code?



Nigel
Xequte Software
www.imageen.com