fox
Junior Member
Posts: 66
|
Post by fox on Apr 2, 2020 2:33:26 GMT -5
Hi all. I would like to know if it is possible to enlarge a bmp image after it has been created on a graphicbox. Thanks a lot to all and bye. fox
|
|
|
Post by Rod on Apr 2, 2020 5:34:12 GMT -5
You can do some size manipulation with the sprite background command and the sprite size command. But they have limitations. You can also use the blitter, there are demos on the lbpe That show the use of stretchblt You may also save and reload the bmp to Ny desired size with this api code. alycesrestaurant.com/lbpe/Load%20Bitmap%20to%20Size.html
|
|
|
Post by Rod on Apr 2, 2020 5:36:38 GMT -5
Also when you say enlarge do you mean for printing purposes? If so you need to explore the print command. You can print any size you like without bothering to change the screen size.
|
|
fox
Junior Member
Posts: 66
|
Post by fox on Apr 2, 2020 10:31:48 GMT -5
Yes, Rod. I mean for printing purposes, because when I create bmp on graphicbox the size is ok, but when I try to print it the size becomes too much little. So I would need to enlarge it for printing. Thanks a lot for any suggestion. Bye fox
|
|
|
Post by Rod on Apr 2, 2020 10:50:33 GMT -5
Right that is very easy. If your bmp is 600 pixels wide use print 600. If it is 1200 pixels wide use print 1200. This will ensure that the 600 or 1200 pixels are spread evenly across the full printed page.
Liberty uses a default value of your screen width in pixels if you don’t specify a value. That’s why most graphics look small. My screen is 1900 pixels wide so without specifying a value a 300 graphic would only fill 1/6th of the printed page. Specifying 300 would spread the graphic across the entire printed page.
More on LBPE
|
|
fox
Junior Member
Posts: 66
|
Post by fox on Apr 2, 2020 12:29:19 GMT -5
Thanks a lot, Rod. A very good suggestion. You solved my problem. Can you suggest to me where I can learn something more about printing (printerdialog)? Thanks a lot again and bye. fox
|
|
|
Post by Rod on Apr 2, 2020 12:42:19 GMT -5
|
|
fox
Junior Member
Posts: 66
|
Post by fox on Apr 2, 2020 12:58:39 GMT -5
Thanks a lot again.
|
|