Hi,
Is it possible to set the rotation angle of a GoFigure, eg. Spade?
Thank you.
Hi,
Is it possible to set the rotation angle of a GoFigure, eg. Spade?
Thank you.
yes.
GoDrawing f = new GoDrawing(GoFigure.Spade);
f.Angle = 30;
Thanks for your prompt reply, maybe I should rephrase my question:
In my application I need to rotate a Figure or any image in an GoIconicNode placed in a GoView.
If you were going to add this to a GoIconicNode derived class, it would look something like this:
public virtual Angle {
get {float angle = 0;
GoDrawing d = this.Shape as GoDrawing;
if (d != null) angle = d.Angle;
return angle;
}
set {
GoDrawing d = this.Shape as GoDrawing;
if (d != null) d.Angle = value;
}
note, I’m just typing here… I haven’t tried to compile this.
Ok i’ll try it out, thanks :)