Bad image quality in canvas

by Serzh Butterfly » Tue, 23 Nov 2010 14:51:32 GMT


Sponsored Links
 Bitmap (or drawable) quality is bad when I draw it into canvas.
Gradient isn't smooth and lines have a little blur. I want to have a
hard lines.
What is the problem?

I'm testing the app on HTC Desire.
All pictures in png format.

Thank you.

-- 



Re: Bad image quality in canvas

by TreKing » Wed, 24 Nov 2010 06:50:54 GMT


 



Sounds like scaling and / or anti-aliasing issues. Make sure you're using
the right image resolution for the screen density your testing on and check
this too:
 http://developer.android.com/reference/android/graphics/Paint.html #ANTI_ALIAS_FLAG

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Other Threads

1. Crash Reports - new version of ACRA available for tests

Hello Android Devs !

Here comes a new major version of ACRA. For those who do not know ACRA
(Application Crash Reports for Android), this is an opensource (Apache
licence) library allowing your application to send crash reports to a
simple Google Docs spreadsheet. You should go to the project home page
to read more about its features: http://acra.googlecode.com

The main motivation of that new version was to get rid of the need of
subclassing an ACRA-specific android Application class. This previous
requirement was preventing developers from using both ACRA and other
feature-rich libs/frameworks like GreenDroid (https://github.com/
cyrilmottier/GreenDroid), RoboGuice (http://code.google.com/p/
roboguice/), Droid-Fu (https://github.com/kaeppler/droid-fu) and
others.

This goal has been achieved by moving the configuration of ACRA from
overridden methods to an ACRA-specific annotation: @ReportsCrashes.

While reaching the goal of allowing to inherit from any Application
subclass, it also makes the process of integrating ACRA to a project
even easier. Here is the look of an application class using ACRA with
Toast notification mode:

@ReportsCrashes(formKey = "dEhuSldocldoUDazR25jM2dtSGo2QXc6MQ",
        mode = ReportingInteractionMode.TOAST,
        resToastText = R.string.crash_toast_text)
public class CrashTest extends Application {

    @Override
    public void onCreate() {
        // The following line is required to initialize ACRA
        ACRA.init(this);

        super.onCreate();
    }
}

Isn't it cleaner?

As we were going to release a new major version, we also added some
useful data to the reports:

  * The details of the device Configuration at its initial state when
initializing ACRA. This includes the user locale (language/country),
his Mobile Country Code and Mobile Network Code, the type of available
input methods (keyboard, navigation, touch...), screen orientation
(landscape/portrait)...
  * The same Configuration data but at the moment of the crash. This
can allow to track issues due to Configuration changes like opening/
hiding physical keyboard, changing orientation... These issues are
often hard to understand and we are sure you'll find this useful.
  * The details of the screen size and density
  * The local date/time of the crash

The new version now needs to be fully tested before being declared
stable. Please follow the instructions in the updated How-To (http://
code.google.com/p/acra/wiki/ACRA3HowTo) to install it in your
application project and file issues in the issue tracker:
http://code.google.com/p/acra/issues/list

All your comments, questions or feature requests are as always
welcome, please do not hesitate to contact me!

Kevin

-- 

2. iMX51 EVK BBG U-Boot

hi Guys:

    Does any one knows how does the iMX51 boot with U-Boot?
    (Currently we are using boot from SD)
    Does the internel BOOT ROM will copy the whole U-Boot from the SD to the
DDRRAM?
    If so, where can I found the code?
    After review the code, I do not find any SD operation related to that.
    In the flash_header.s, I can only found IOMUX and DDR2 initialize...
    In the startup.s(arm_cortexa8), I also do not found any SD card
operation
    In the board.c(libarm), of course not again.

    So I really wonder, where is the actually place that the iMX51 could
copy the U-Boot to the DDRRAM?


    PS.  As far as I know, the iMX51 BOOTRAM will copy 8K code from the SD
card into the internel RAM and then run in the Internel RAM, the 8K code
should then copy the whole bootloader into DDRRAM and then jump to the
DDRRAM, that's the way how iMX51 windows CE6 works...

    Any comments is highly appreciated!!
    Thank you guys!

-- 

3. Issue loading native libraries (i.e. System.load()/dlopen) on my Nexus One after FRG83 System update

4. Bluetooth in Andoid?

5. Problem in loading image on the layout on clicking button.

6. minta apk smart measure

7. Mod: Ada yang mau jadi relawan Instruktur "TrainingDevelop Android Aplication"