Ejemplo n.º 1
0
 public NiceArtEditor(Builder builder, ContentResolver resolver)
 {
     try
     {
         Context               = builder.context;
         ParentView            = builder.parentView;
         ImageView             = builder.imageView;
         DeleteView            = builder.deleteView;
         BrushDrawingView      = builder.brushDrawingView;
         IsTextPinchZoomable   = builder.isTextPinchZoomable;
         MDefaultTextTypeface  = builder.textTypeface;
         MDefaultEmojiTypeface = builder.emojiTypeface;
         MLayoutInflater       = (LayoutInflater)Context.GetSystemService(Context.LayoutInflaterService);
         BrushDrawingView.SetBrushViewChangeListener(this);
         AddedViews = new List <View>();
         RedoViews  = new List <View>();
         Resolver   = resolver;
         //wael
         //ParentView.DrawingCacheEnabled = true;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Building a NiceArtEditor which requires a Context and NiceArtEditorView
 /// which we have setup in our xml layout
 /// </summary>
 /// <param name="context">context</param>
 /// <param name="NiceArtEditorView">NiceArtEditorView</param>
 public Builder(Context context, NiceArtEditorView NiceArtEditorView, ContentResolver resolver)
 {
     try
     {
         this.context     = context;
         parentView       = NiceArtEditorView;
         imageView        = NiceArtEditorView.GetSource();
         brushDrawingView = NiceArtEditorView.GetBrushDrawingView();
         resolverContent  = resolver;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Ejemplo n.º 3
0
 public MyAsyncTask(NiceArtEditor editor, string imagePath, NiceArtEditorView parentView, INiceArt.IOnSaveListener onSaveListener, SaveSettings saveSettings, Bitmap saveBitmap, SaveType type) : base()
 {
     try
     {
         // do stuff
         Editor         = editor;
         ImagePath      = imagePath;
         ParentView     = parentView;
         OnSaveListener = onSaveListener;
         Type           = type;
         SaveSettings   = saveSettings;
         SaveBitmap     = saveBitmap;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }