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; }
public void removeThumbnail(NotesThumbnail thumbnail) { thumbnails.Remove(thumbnail); onThumbnailRemoved(thumbnail); }
public void addThumbnail(NotesThumbnail thumbnail) { thumbnails.Add(thumbnail); onThumbnailAdded(thumbnail); }
/// <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)); }