Frage
Visual Foxpro (VFP): Background color for ResizeCanvas - how?
I'm using Visual Foxpro to automate certain tasks with photoshop.
I can open an image file, save it as something else, extend the canvas, but I cannot set the color for the canvas that gets added.
Somewhere in the application model for Photoshop (CS) must be an object property to set the background color to some kind of value representing for example a certain grey.
Has anybody worked with this
General approach in my VFP-Code:
PUBLIC oPhotoshop
oPhotoshop = CREATEOBJECT( "Photoshop.Application" )
oJPEGSaveOptions = CREATEOBJECT("Photoshop.JPEGSaveOptions")
oJPEGSaveOptions.quality = 8
lnNewH = 800
docRef.resizeCanvas(lnNewH ,lnNewH ,5) && 5 = extend to all sides with active background color
docRef.SAVEAS(lcfilename2, oJPEGSaveOptions, .F.)
I can open an image file, save it as something else, extend the canvas, but I cannot set the color for the canvas that gets added.
Somewhere in the application model for Photoshop (CS) must be an object property to set the background color to some kind of value representing for example a certain grey.
Has anybody worked with this
General approach in my VFP-Code:
PUBLIC oPhotoshop
oPhotoshop = CREATEOBJECT( "Photoshop.Application" )
oJPEGSaveOptions = CREATEOBJECT("Photoshop.JPEGSaveOptions")
oJPEGSaveOptions.quality = 8
lnNewH = 800
docRef.resizeCanvas(lnNewH ,lnNewH ,5) && 5 = extend to all sides with active background color
docRef.SAVEAS(lcfilename2, oJPEGSaveOptions, .F.)
