A FOCALGRADIENT must be declared in DefineShape4—not DefineShape, DefineShape2
or DefineShape3.
public FocalGradient( byte InitialVersion ) : base(InitialVersion) { this._spreadMode = SpreadMode.PadMode; this._interpolationMode = InterPolation.Linear; this._gradientRecords = new List<GradRecord>(); }