var xPos = new UnitValue( 0.5,'px') ;
var yPos = new UnitValue( 0.5,'px');
var pixPos = [ xPos, yPos ];
我用过这个
Tuple<PsUnits, PsUnits> tuple = new Tuple<PsUnits,PsUnits>(xpos,ypos);
但不为我工作。任何想法 ??
我做了一堂课
public class pixpos
{
float XPOS;
float YPOS;
public float xpos
{
get
{
return this.XPOS;
}
set
{
this.XPOS = value;
}
}
public float ypos
{
get { return this.YPOS; }
set { this.YPOS = value; }
}
}
pixpos obj = new pixpos();
obj.xpos = xPos;
obj.ypos = yPos;
它也不起作用,我必须将它作为参数传递给Colorsamples.Add();
Photoshop.Application appRef = default(Photoshop.Application);
var mySampler = appRef.ActiveDocument.ColorSamplers.Add(ps);