Exemple #1
0
        public SeriesDetailView(Series series, RectangleF rect) : base(rect)
        {
            _series         = series;
            BackgroundColor = UIColor.Clear;

            // Defer to latest twitter if it exists; otherwise, use embed
            var image = ImageCache.Get("latest_twitter");

            if (image == null)
            {
                var src = AppManifest.Current.Image;
                image = UIImageEx.FromIdiomBundle(src);

                var fresh = image;
                image = ImageHelper.RoundAndSquare(fresh, 14);
                fresh.Dispose();
            }

            _artistView                 = new UIImageView(new RectangleF(10, 10, 73, 73));
            _artistView.Image           = image;
            _artistView.BackgroundColor = UIColor.Clear;
            image.Dispose();

            AddSubview(_artistView);
        }
Exemple #2
0
        public UIImage GetDefaultBioImage()
        {
            var src   = AppManifest.Current.Image;
            var image = UIImageEx.FromIdiomBundle(src);

            image = ImageHelper.RoundAndSquare(image, 8);
            return(image);
        }