コード例 #1
0
        public static void setCurrentPhotoToIndex(int index)
        {
            currentAsset = photoAssets [index];
            ALAssetRepresentation rep = currentAsset.RepresentationForUti("public.jpeg");
            CGImage imageRef          = rep.GetFullScreenImage();

            if (imageRef != null)
            {
                currentPhotoImage = UIImage.FromImage(imageRef);
                currentPhotoIndex = index;
            }
        }
コード例 #2
0
        public static void setCurrentPhotoToIndex(int index)
        {
            currentAsset = photoAssets [index];
            ALAssetRepresentation rep = currentAsset.RepresentationForUti("public.jpeg");

            // image might not be available as a JPEG
            if (rep == null)
            {
                return;
            }
            CGImage imageRef = rep.GetFullScreenImage();

            if (imageRef == null)
            {
                return;
            }
            currentPhotoImage = UIImage.FromImage(imageRef);
            currentPhotoIndex = index;
        }
コード例 #3
0
		public static void setCurrentPhotoToIndex (int index)
		{
			currentAsset = photoAssets [index];
			ALAssetRepresentation rep = currentAsset.RepresentationForUti ("public.jpeg");
			// image might not be available as a JPEG
			if (rep == null)
				return;
			CGImage imageRef = rep.GetFullScreenImage ();
			if (imageRef == null)
				return;
			currentPhotoImage = UIImage.FromImage (imageRef);
			currentPhotoIndex = index;
		}
コード例 #4
0
		public static void setCurrentPhotoToIndex (int index)
		{
			currentAsset = photoAssets [index];
			ALAssetRepresentation rep = currentAsset.RepresentationForUti ("public.jpeg");
			CGImage imageRef = rep.GetFullScreenImage ();
			if (imageRef != null) {
				currentPhotoImage = UIImage.FromImage (imageRef);
				currentPhotoIndex = index;
			}
		}