uses
System,
Windows,
SysUtils,
Classes,
ImagingTypes,
Imaging,
ImagingFormats,
ImagingUtility,
Direct3D9;