public static List <ThumbnailItem> SaveThumbnails(UserPhotoManager userPhotoManager, SettingsManager settingsManager, Point point, Size size, Guid userId)
 {
     return(SaveThumbnails(userPhotoManager, settingsManager, new UserPhotoThumbnailSettings(point, size), userId));
 }
 public static List <ThumbnailItem> SaveThumbnails(UserPhotoManager userPhotoManager, SettingsManager settingsManager, int x, int y, int width, int height, Guid userId)
 {
     return(SaveThumbnails(userPhotoManager, settingsManager, new UserPhotoThumbnailSettings(x, y, width, height), userId));
 }
 public ThumbnailsData(Guid userId, UserPhotoManager userPhotoManager)
 {
     UserId           = userId;
     UserPhotoManager = userPhotoManager;
 }
Esempio n. 4
0
 public void AddToCache(Guid userID, Size size, string fileName)
 {
     if (CacheNotify != null)
     {
         CacheNotify.Publish(new UserPhotoManagerCacheItem {
             UserID = Google.Protobuf.ByteString.CopyFrom(userID.ToByteArray()), Size = UserPhotoManager.ToCache(size), FileName = fileName
         }, CacheNotifyAction.InsertOrUpdate);
     }
 }
 public string MainImgUrl(Tenant tenant)
 {
     return(UserPhotoManager.GetPhotoAbsoluteWebPath(tenant, UserId));
 }
 public Bitmap MainImgBitmap(int tenantId)
 {
     return(UserPhotoManager.GetPhotoBitmap(tenantId, UserId));
 }