Beispiel #1
0
 public void Flush()
 {
     cords  = ImageStream.getCoor(this);
     source = BitmapSource.Create(width, height, img.DpiX, img.DpiY, pf, null, pixelData, rawStride);
     UIAssembler.updateTab(source);
     Sync();
 }
 public static Coor getCoor(RImage img)
 {
     Coor res = new Coor();
     for (int i = 0; i < Register.Count; i++)
     {
         foreach (RImage im in Register.ElementAt(i).Value)
             if (img.Source == im.Source)
             {
                 res.key = Register.ElementAt(i).Key;
                 res.ix = Register.ElementAt(i).Value.IndexOf(im);
                 return res ;
             }
     }
     return new Coor();
 }
Beispiel #3
0
        public static Coor getCoor(RImage img)
        {
            Coor res = new Coor();

            for (int i = 0; i < Register.Count; i++)
            {
                foreach (RImage im in Register.ElementAt(i).Value)
                {
                    if (img.Source == im.Source)
                    {
                        res.key = Register.ElementAt(i).Key;
                        res.ix  = Register.ElementAt(i).Value.IndexOf(im);
                        return(res);
                    }
                }
            }
            return(new Coor());
        }
Beispiel #4
0
 public void FlushBitmap(Bitmap b){
     
     cords = ImageStream.getCoor(this);
     setBitmap(Globals.Bitmap2BitmapImage(b),b);
     Sync();
 }
Beispiel #5
0
 public void Flush()
 {
     
     cords = ImageStream.getCoor(this);
     source = BitmapSource.Create(width, height, img.DpiX, img.DpiY, pf, null, pixelData, rawStride);
     UIAssembler.updateTab(source);
     Sync();
 }
Beispiel #6
0
 public void FlushBitmap(Bitmap b)
 {
     cords = ImageStream.getCoor(this);
     setBitmap(Globals.Bitmap2BitmapImage(b), b);
     Sync();
 }
 public static void setImage(Coor cords,RImage img)
 {
     Register[cords.key][cords.ix] = img;
 }
Beispiel #8
0
 public static void setImage(Coor cords, RImage img)
 {
     Register[cords.key][cords.ix] = img;
 }