picyka Posted October 9, 2022 Share Posted October 9, 2022 What am I doing wrong to save the image? Canvas.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 9, 2022 Share Posted October 9, 2022 Hello, What is the issue? Quote Link to comment Share on other sites More sharing options...
picyka Posted October 9, 2022 Author Share Posted October 9, 2022 37 minutes ago, Sherzod said: Olá, Qual é o problema? The image does not save Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2022 Share Posted October 10, 2022 I will try to check your testcase. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2022 Share Posted October 10, 2022 You can try to use this approach: 1. UnimCanvas.ClientEvents.ExtEvents -> function resize(sender, info, eOpts) { ajaxRequest(sender, '_resize', {}) } 2. UnimCanvas -> OnAjaxEvent: procedure TMainmForm.UniCanvas1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_resize' then begin (Sender as TUnimCanvas).Clear end; end; The solution that was given as in this post: Quote Link to comment Share on other sites More sharing options...
picyka Posted October 10, 2022 Author Share Posted October 10, 2022 4 hours ago, Sherzod said: You can try to use this approach: 1. UnimCanvas.ClientEvents.ExtEvents -> function resize(sender, info, eOpts) { ajaxRequest(sender, '_resize', {}) } 2. UnimCanvas -> OnAjaxEvent: procedure TMainmForm.UniCanvas1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_resize' then begin (Sender as TUnimCanvas).Clear end; end; The solution that was given as in this post: Thanks for the master tips. Have a good week. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2022 Share Posted October 10, 2022 Thanks, you too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.