Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

movable text

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all..

some guidance needed.

ok..for a start..i am doing a project and i am assigned to a certain task.i am to able user to type the text they want choosing the type of font and also the prefered color and also enable user to move the text around to put the text at the specific place the user wants to.

b4 this,there will be an image, i am to overlap this text OVER the image. so, is there anyone out there who noes how to do this? as in the logic of the whole thing?

thx a million in advance
Posts: 17346
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to do this you will need to use the low level api to draw your images and text through code. You cannot use the high level api because it will place the items based on the devices implementation.

You can place as many drawings on top of each other as you want with the low level api. Use the Canvas and Graphics class. Place the image in first, then use the drawString method to draw the text using a text anchor point.

Hope that helps without actually writing your code for you

Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic