Hi, I really love this activex, unfortunately it's been
a crazy thing trying to figure out all the synttax for using it in Foxpro 9.
I figured out almost all the things I need, but there is one thing
that is unfortunate. I can't load the constants, so I am forced to
type what I need. The main problem is color. You list out the constants
in the help, but for some reason, they don't work when I convert them.
For example,
ColorRed = &hFFFF0000
When i convert this in Foxpro, the result is 4294901760 which GraphicMill says is over the limit
So, I use 0xFF0000 which equals 16711680, Graphics Mill accepts the number, but the background in the graphic looks like a bad TV lines(different colors, unblended). But, when i use this number of the
drawtext, it's red! It's fine. So whu when I plug it into the background color it does not work?
My question is, how can I make a solid background red image using decimal?
I even used the CreateRGB(255,0,0) values which returned -65536 which gave the same
muddy results. If I do not pass any parameter, I get clean white.
For example, on the FF0000, can I do some kind of math to apply the solid color or figure out
what Graphic mill wants as a number for specific colors?
I've attached the image.
Thanks,
Format24bppRgb = 21108744
ogm.Data.ColorManagement.DataProfile = "C:\windows\system32\spool\drivers\color\sRGB Color Space Profile.icm"
* this does not work: nColor = 0xFF0000
* this does not work: nColor = ogm.Color.CreateRgb(255,0,0)
* this does not work: nColor = 0xFF0000
ogm.CreateNew(780, 600, Format24bppRgb, nColor)
cNewFile = "test.jpg"
ogm.savetofile(cNewFile)
Base12 attached the following image(s):