Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8352217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:54:04+00:00 2026-06-09T08:54:04+00:00

UIImageView not show/display Original Image as that of available on server. for more ref

  • 0

UIImageView not show/display Original Image as that of available on server.
for more ref check it

float scaleFactor = 0.0f;`
float scaleWidth = dstRectangle.Width; //width =748
float scaleHeight = dstRectangle.Height; // height = 759
if(!SizeF.Equals(srcRectangle ,dstRectangle))
{
float widthFactor =(float) dstRectangle.Width / srcRectangle.Width;   //srcRectHeight = 512
float heightFactor =(float) dstRectangle.Height / srcRectangle.Height;  //srcRectangle.Height = 314
if(widthFactor >heightFactor)
scaleFactor = widthFactor ;
else
scaleFactor = heightFactor;
scaleWidth = srcRectangle.Width * scaleFactor;
scaleHeight = srcRectangle.Height * scaleFactor;
if(widthFactor >heightFactor)
           {
thumbnailPoint.Y = (dstRectangle.Height - scaleHeight) * .5f;
}
else


if(widthFactor < heightFactor)
{
thumbnailPoint.X = (dstRectangle.Width - scaleWidth) *.5f;
}
}
UIGraphics.BeginImageContext(new SizeF(dstRectangle.Width , dstRectangle.Height));
RectangleF thumbnailRect = RectangleF.Empty;
thumbnailRect.Offset(thumbnailPoint);
thumbnailRect.Size.Width = scaleWidth;

thumbnailRect.Size.Height = scaleHeight;




CGImage  _bitmap = UIGraphics.GetImageFromCurrentImageContext().CGImage;
ImgVIew.Image = UIImage.FromImage(_bitmap);
UIGraphics.EndImageContext();

It gives me an UIImage But not display on the UIImageView
In CGImage I got ALphaInfo = PremultipledLast

BitsPerComponant = 8

BitsPerPixel =32

BytesPerRow = 3008

Height= 759

Width = 748

this values I get into CGImage but this CGImage I conver it to UIImage but still it can not display

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:54:06+00:00Added an answer on June 9, 2026 at 8:54 am

    Can you just do something like this:

            using (var url = NSUrl.FromString ("http://yoururl.com/yourpic.jpg"))
            {
                using (var data = NSData.FromUrl (url))
                {
                    imageView.Image = UIImage.LoadFromData (data);
                }
            }
    

    It sounds like you just need to download an image and set it to a UIImageView, right?

    It seems like you are writing a lot of code for something pretty simple.

    NOTE: use a try-catch for networking errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display image on UIImageView using URL and NSString . I am
I'm doing two animations on the same UIImageView, using blocks. Animations are not quite
I want to pause UIImageView animation and based on my research found that you
I have a UIImageView object that when clicked it will play a animation, I
I have set the size of the tableView that I show as the popoverController
I want to show a custom checkmark and uncheckmark image for tableview cell when
Not sure why I can show jpg images in the simulator but not when
I use a UIScrollView to show a serial of UIImageView (the UIImageView is added
I have a custom class inheriting from UITableViewCell class that shows either an image
I have an image I want to display inside a UIView . In Interface

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.