>
>Just uploaded GPIMAGE2 to a new location.
>Please try it and let me know if it goes ok
>
http://weblogs.foxite.com/files/vfpimaging/gpimage2/gpimage2.zip>
>Cesar
Cesar,
In using the code for GPImage.prg, I ran into a problem when I built the project with the GPImage.prg in it.
I would get a build error
"Unable to find Unknown TACOLORMAP"
I made a change in the code to Function Makecolormap - I added the EXTERNAL ARRAY taColorMap below and commented out
EXTERNAL ARRAY tacolorMatrix (I think that was copied from the previous Function and not changed.....)
FUNCTION MakeColorMap(taColorMap)
EXTERNAL ARRAY taColorMap
LOCAL lcColorMap, n, lnArgbOld, lnArgbNew
lcColorMap = ""
FOR n = 1 TO ALEN(taColorMap,1)
lnargbOld = MakeARGB(taColorMap(n,1), taColorMap(n,3))
lnargbNew = MakeARGB(taColorMap(n,2), taColorMap(n,4))
lcColorMap = lcColorMap + dword(lnargbOld) + dword(lnargbNew)
ENDFOR
RETURN lcColorMap
ENDFUNC
This built ok and ran ok.
A question...
In the RESIZE function, what are the acceptable values for tnInterpolationMode for the Function Resize(tnWidth, tnHeight, tnInterpolationMode) ??
When I take a graphic and resize it, I would like to maintain the Aspect ration of the original graphic and force the X size to be at least a certain size, but no larger. Can it be done with the Resize command and the tnInterpolationMode paramater?
Thanks a bunch!
Tommy Tillman A+ NetWork+ MCP