Jump to content

UniCanvas SaveToFile creates empty file


Woutero

Recommended Posts

Sherzod

Within

UniCanvas1AfterSubmit

I'm trying to use 

UniCanvas1.SaveToFile(fName,tiBMP);

But the file being saved is always zero bytes.
Has this been resolved?
This problem has been reported previously:

 

 

Link to comment
Share on other sites

I'm not drawing anything on the UniCanvas.
I have inserted a UniChart on the UniCanvas.
I am using UniCanvas1.SubmitData but
maybe the UniCanvas has not received the data of the UniChart?

So what setting must I use on the UniCanvas to make sure the UniCanvas has received the data of all components/controls on the UniCanvas?

Or how does one transfer/save the image of components on the UniCanvas, or is this not possible?

Link to comment
Share on other sites

Sherzod

I just did a test to draw something via

UniCanvas.BitmapCanvas.Rectangle(10, 10, 100, 100);

and then the UniCanvas1.SaveToFile(fName,tiBMP);

work correctly, so that has been resolved.

But I still want to save a portion of the screen (whatever components are on the Canvas, e.g. UniPanel with UniChart etc.) to a file or stream.

Can this be done using a UniCanvas or can one only draw to the UniCanvas?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...