image question


Last Updated:

  1. amey77

    amey77 New Member This Topic's Starter

    Joined:
    Nov 28, 2012
    Messages:
    1
    Likes Received:
    0
    I have a image of size 350*350 , now i want to scale or resize it to smaller size say (100dp * 100dp) and place it in ImageView,, but when i do so in code, image is getting distorted...i want it to maintain its same quality , but it is getting distorted.
    I tried to scale it using Bitmap.createSacledBitmap, but didnt helped
    Please suggest.
     

    Advertisement
  2. jimbobcook

    jimbobcook Well-Known Member

    Joined:
    Jun 12, 2012
    Messages:
    197
    Likes Received:
    15
    Hi amey77

    Welcome to the Forum...

    I have moved your post to the Computers and IT section to hopefully get you a better answer :)

    Please feel free to place another thread in the Introductions Forum with information about yourself for the team

    Cheers
     
    9to5cynic likes this.
  3. Speed Daemon

    Speed Daemon Disabled

    Joined:
    Jul 12, 2012
    Messages:
    2,033
    Likes Received:
    556
    For the sake of clarity, do you need to do this on your Android device, without help from a computer?

    As you probably already know, simple picture editing software like MS Paint (that comes with Windows) can do this easily.

    I regret that I can't help you with the class that you mentioned. Maybe this example could help you. Notice that both H and V values must be defined.
     
    9to5cynic likes this.

Share This Page

Loading...