public ThumbnailPickerInfo(int width, int height, NotesThumbnail thumb)
 {
     imageProp        = new ImageRendererProperties();
     imageProp.Width  = width;
     imageProp.Height = height;
     imageProp.UseWindowBackgroundColor  = false;
     imageProp.CustomBackgroundColor     = BACK_COLOR;
     imageProp.AntiAliasingMode          = 2;
     imageProp.UseActiveViewportLocation = false;
     imageProp.OverrideLayers            = true;
     imageProp.TransparentBackground     = true;
     imageProp.ShowBackground            = false;
     imageProp.ShowWatermark             = false;
     imageProp.ShowUIUpdates             = false;
     imageProp.LayerState     = thumb.LayerState;
     imageProp.CameraPosition = thumb.CameraPosition.Translation;
     imageProp.CameraLookAt   = thumb.CameraPosition.LookAt;
 }
Ejemplo n.º 2
0
 public void removeThumbnail(NotesThumbnail thumbnail)
 {
     thumbnails.Remove(thumbnail);
     onThumbnailRemoved(thumbnail);
 }
Ejemplo n.º 3
0
 public void addThumbnail(NotesThumbnail thumbnail)
 {
     thumbnails.Add(thumbnail);
     onThumbnailAdded(thumbnail);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Add a thumbnail to the picker.
 /// </summary>
 public void addThumbnail(NotesThumbnail thumbnail)
 {
     thumbnailProperties.Add(new ThumbnailPickerInfo((int)thumbnailImages.ImageSize.Width, (int)thumbnailImages.ImageSize.Height, thumbnail));
 }