How to Print Images

Posted December 15th @ 1:49 pm by m3Rlin

Sometimes you want to print an image in Delphi but the TImage component doesn’t have any printing methods. Well, the solution is quite easy. All you have to do is draw on the printers Canvas. This sample code should give you the idea.
The first procedure will print only Bitmap images and will scale the image [...]

How to Change the Desktop Wallpaper

Posted December 15th @ 7:30 am by m3Rlin

The desktop wallpaper can be set by editing a few entries in the system registry but this will not let Windows know that it has been changed. Also you should make a call to the SystemParametersInfo() function.
You can use BMP, GIF of JPEG images for the wallpaper but GIF and JPEG images will only be [...]