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

  • SEARCH
  • Home
  • 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 8172633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:50:54+00:00 2026-06-06T21:50:54+00:00

I use an imageView to display an image on a CALayer . After I

  • 0

I use an imageView to display an image on a CALayer.
After I apply some scaling to it (down to 0.2) using CGAffineTransformMakeScale(scale,scale), I get ugly blurriness.

It seems like the transformation matrix actually affects the image, rather than have it stored somewhere in memory in its full res and operating on that.
What might be a way to keep that image details crisp still ?

Thanks!

EDIT:

Here’s the code as asked for

The object inherits from CALayer.

theScale = 0.2;
trans  = CGAffineTransformMakeScale(theScale,theScale);
[self setAffineTransform:trans];

Later on in the code:

theScale = 1.0;
trans  = CGAffineTransformMakeScale(theScale,theScale);
[self setAffineTransform:trans];
  • 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-06T21:50:56+00:00Added an answer on June 6, 2026 at 9:50 pm

    If the issue is blurriness while scaling down, have you tried setting CGContextSetInterpolationQuality(context, kCGInterpolationHigh); before making your transform?

    If the issue is pixelation while scaling up, the workaround is having a higher resolution image and scaling down instead.

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

Sidebar

Related Questions

I want to use a command like this: ImageView image = (ImageView) findViewById(R.id.x2); where
I have following Image as src in ImageView. I use this as background image.
I have a full screen UIScrollView to display my image, which employ some codes
How to display an Image received from an android.intent.action.SEND in an imageview ? The
I have an image to display via an ImageView element. Based on user input
I am displaying an image using ImageView container. the image needs to be resized
I use panGestureRecognizer to move imageView.. it can work in the parent view of
I have an onTouchListener on an ImageView and I use event.getX() or getY(). My
I've defined a class MarkerView which extends ImageView and to use this View, I
I'm trying to display a small refresh button using UIButton in a standard UIView

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.