1. Check out our companion app, Forums for Android! Download from Google Play

image question

Discussion in 'Computers & IT' started by amey77, Nov 28, 2012.

  1. amey77

    amey77 New Member
    Thread Starter
    5

    Nov 28, 2012
    1
    0
    5
    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
    38

    Jun 12, 2012
    197
    15
    38
    Male
    IT Guy
    UK
    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 Well-Known Member
    213

    Jul 12, 2012
    2,033
    557
    213
    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...