Move text over canvas

Hello,
I need to move and resize text over canvas.
DrawText only draw over canvas. I can not move it.

How to do this?

The only way with drawText is to clear the canvas and run drawText again with the new font size and location.

How to make picture from text with transparent background?

Use a canvas with no background, draw some text, and save the canvas as an image. The canvas needs to be visible.

Supper! Thanks!

You might also want to try this approach:

textToImageSprite.aia (8.1 KB)

credits @Jerin_Jacob for the ComponentsToImage extenion

I have problem when setup Text before Save.
Here is example

saveHello.aia (7.7 KB)

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Sorry to take up your time.

What is the problem?

Why didn't you follow the example project I provided?

I have sent a modified example of yours that shows the problem.

  1. And I change the content to "lblTextCopy".
  2. Run "Convert to Images"

The error that appears is that "lblTextCopy" is of zero width.
The system should preview the change to "lblTextCopy" and then execute "Convert to Images".

You may need to use a clock timer, with an interval of 100 or 200 ms, in which to call the ConvertToImage block, to give the label time to populate?

Are you sure you need extensions for this?


canvastext.aia (4.0 KB)
sample run

1 Like