Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / dark ink angles

Author
Message
bunnyb
18
Years of Service
User Offline
Joined: 16th Oct 2006
Location:
Posted: 12th Nov 2009 16:03
Hi,
Is there a way to print text at an angle other than horizontal using Darkink.If so code examples would be appreciated.
Regards
Peter Burrows
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 12th Nov 2009 18:29
I have Dark Ink but really haven't messed with it that much. Since it prints pictures you can make the text a sprite, rotate it, paste it on a bitmap, save the bitmap as an image, and print the image with Dark Ink. I didn't add the Dark Ink code because the standard code example for printing an image will work once the image has been created... this just makes the rotated text image.



bunnyb
18
Years of Service
User Offline
Joined: 16th Oct 2006
Location:
Posted: 12th Nov 2009 18:43
Thanks for that Grog,
I had thought about using an image/memblocks but wasn't happy with creating the image from the text.
regards
Peter Burrows
bunnyb
18
Years of Service
User Offline
Joined: 16th Oct 2006
Location:
Posted: 14th Nov 2009 16:39
Hi grog,
Thanks again for your code, which I modified to suit my needs.
I then added code to print the text on my printer which worked ok, however the printed image is very small, an image that is 1024x768 pixels on the pc screen is about 4 X 3 cm when printed.
I would appreciate any help in making the printed image bigger.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 14th Nov 2009 19:01 Edited at: 14th Nov 2009 19:02
Np. To stretch an image you can use Bitmap 0 (which is the main screen) to place whatever you want to resize, the CREATE BITMAP command to make a bitmap the resolution you want Bitmap 0 to be, and COPY BITMAP to stretch Bitmap 0 into the new size.



The above code snip will create a background at 640x480 and stretch that background to 1024x768 and save both images. Once you run it check the directory you ran it from for the files ResizeTest1.png (which should be 640x480) and ResizeTest2.png (which should be 1024x768). You can use this method to make any image size you need.

Login to post a reply

Server time is: 2024-11-24 23:08:11
Your offset time is: 2024-11-24 23:08:11