I'm trying to create a blank white image in Delphi 2010. The following seems to ignore the background color.
Image := GdPictureImaging1.CreateNewGdPictureImage(250, 250, 24, GdPictureImaging1.ARGB_2(255,255,255));
How can I do this?
You are using the wrong CreateNewGdPictureImage overload.
The overload you are using needs a color of type Long, and you are using ARGB_2 which returned a Color object.
Either use CreateGdPictureImage_2 or use ARGBI() with the overload you are using.
For more information on COM overloading functions:
Hope this helps,
Doh... Thanks for pointing that out.
Who is online
Users browsing this forum: No registered users and 1 guest