Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GPIMAGE 2 availability for VFP 8
Message
 
To
01/05/2010 22:39:56
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01462538
Message ID:
01463031
Views:
45
>
>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)
*** Creates a String containing ColorMapt from the 4 column Array
*	EXTERNAL ARRAY taColorMatrix
	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
Previous
Reply
Map
View

Click here to load this message in the networking platform