コード例 #1
0
 public ScaleImageViewGestureDetector(ScaleImageView imageView)
 {
     m_ScaleImageView = imageView;
 }
コード例 #2
0
        public override Java.Lang.Object InstantiateItem(ViewGroup container, int position)
        {
            ScaleImageView imageView;

            lock (syncObject)
            {
                // create view
                imageView = new ScaleImageView(baseContext, tVP);
                views[position] = imageView;

                // prepare page bitmap
                Bitmap bm = GetPageBitmap(position);

                ReplaceBitmap(position, bm);

                imageView.SetImageBitmap(bm);

                container.AddView(imageView);
            }

            // proceed with rendering
            SchedulePageRendering(position);

            return imageView;
        }
コード例 #3
0
 public override Java.Lang.Object InstantiateItem(ViewGroup container, int position)
 {
     ScaleImageView SIV = new ScaleImageView (baseContext, CustVP);
     if (bitmaps [position] == null) {
         var cachepath = System.IO.Path.Combine (documentsPath, "Cache" + position + ".jpg");
         Bitmap BM = BitmapFactory.DecodeFile (cachepath);
         bitmaps [position] = BM;
         BM = null;
     }
     SIV.SetImageBitmap (bitmaps [position]);
     SIV.ZoomOut ();
     SIV.Cutting ();
     views [position] = SIV;
     container.AddView (SIV);
     SIV = null;
     return views [position];
 }