Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

TextToImage 1.07 - Write text onto an image or screenshot


  • Please log in to reply
64 replies to this topic
trevorm7
  • Members
  • 4 posts
  • Last active: Apr 21 2017 03:23 PM
  • Joined: 25 Sep 2015

Hey tic, can you reupload this function? Else if anyone still has this can you reupload it or point me to another function that can do what this does?



trevorm7
  • Members
  • 4 posts
  • Last active: Apr 21 2017 03:23 PM
  • Joined: 25 Sep 2015

Ok I found a working download: http://infoki.net/m/post/689



trevorm7
  • Members
  • 4 posts
  • Last active: Apr 21 2017 03:23 PM
  • Joined: 25 Sep 2015

OK. This function is not working correctly with the latest 1.1x AutoHotKey version. I have to install the 1.0x version. Unfortunately I need the latest version to do everything I need for my project.

 

Does anyone know what needs to be changed to get this working correctly in the latest version. Basically it's not reading the parameters correctly, the Screenshot.png file from the example is being made into a file called "S" with no extension and sometimes randomly doesn't do anything.



tic
  • Members
  • 1934 posts
  • Last active: May 30 2018 08:13 PM
  • Joined: 22 Apr 2007

This function was written before the Gdip library. Equivalent code would be something like

pToken := Gdip_Startup()
pBitmap := Gdip_CreateBitmapFromFile("myImage.png")
G := Gdip_GraphicsFromImage(pBitmap)
Gdip_TextToGraphics(G, "Hello!", "x10 y10", "Arial")
Gdip_SaveBitmapToFile(pBitmap, "myOutImage.png")
Gdip_DeleteGraphics(G), Gdip_DisposeImage(pBitmap)
Gdip_Shutdown(pToken)


trevorm7
  • Members
  • 4 posts
  • Last active: Apr 21 2017 03:23 PM
  • Joined: 25 Sep 2015

Hey thanks. That's what I needed.