Hi,
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?
Thanks,
-G
Delphi 2010 - Trouble creating blank white image
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Delphi 2010 - Trouble creating blank white image
Hi,
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:
post12438.html#p12438
Hope this helps,
Sami
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:
post12438.html#p12438
Hope this helps,
Sami
Re: Delphi 2010 - Trouble creating blank white image
Hi Sami,
Doh... Thanks for pointing that out.
Thanks,
-G
Doh... Thanks for pointing that out.
Thanks,
-G
Who is online
Users browsing this forum: No registered users and 0 guests