/// <summary> /// Initializes a new instance of the <see cref="LOLApp_iOS.DrawingInfo"/> class. /// </summary> /// <param name='drawingID'> /// Drawing I. /// </param> /// <param name='contentPackItemID'> /// Content pack item I. /// </param> /// <param name='drType'> /// Drawing layer type. Only for Callouts, Stamps and Comix. /// </param> public DrawingInfo(int drawingID, int contentPackItemID, DrawingLayerType drType, ImageView image, RectangleF imageFrame, Android.Graphics.Color textColor) { if (drType != DrawingLayerType.Callout && drType != DrawingLayerType.Comix && drType != DrawingLayerType.Stamp) { throw new ArgumentException ("When initializing a DrawingInfo item with this constructor, drType must represent a content pack item!", "drType"); }//end if this.DrawingID = drawingID; this.ContentPackItemID = contentPackItemID; this.DrawingType = drType; this.Image = image; this.ImageFrame = imageFrame; this.LineColor = textColor; this.PathPoints = new List<System.Drawing.PointF> (); }
public void AddImageForContentPack(UIImage image, DrawingLayerType drType, int contentPackItemID) { this.userDraw = false; this.imgLayerView = new ImageLayerView (this.Bounds); this.imgLayerView.DeleteTapped += ImgLayerView_DeleteTapped; this.imgLayerView.CancelTapped += ImgLayerView_CancelTapped; this.imgLayerView.ApplyTapped += ImgLayerView_ApplyTapped; this.AddSubview (this.imgLayerView); this.imgLayerView.SetImageForContentPackItem (image, drType, contentPackItemID); }
public DrawingLayerComponent(DrawingLayerType drawingLayerType) { _type = drawingLayerType; _drawRequestCollection = new List<DrawRequest>(); _useRefraction = false; }
public static AnimationTypesAnimationLayerType GetLayerTypeForDrawingType(DrawingLayerType drType) { switch (drType) { case DrawingLayerType.Callout: return AnimationTypesAnimationLayerType.Callout; case DrawingLayerType.Comix: return AnimationTypesAnimationLayerType.Comix; case DrawingLayerType.Drawing: return AnimationTypesAnimationLayerType.Path; case DrawingLayerType.Image: return AnimationTypesAnimationLayerType.Image; case DrawingLayerType.Stamp: return AnimationTypesAnimationLayerType.Stamp; default: throw new InvalidOperationException("Unknown DrawingLayerType value!"); }//end switch }
public DrawingLayerComponent(DrawingLayerType drawingLayerType) { _type = drawingLayerType; _drawRequestCollection = new List <DrawRequest>(); _useRefraction = false; }