premultiplied alpha

by hackerEnthusiast » Thu, 09 Apr 2009 20:44:23 GMT


Sponsored Links
 Hey there,

Is it possible to have the android framework output unmultiplied
alpha? If so, could it be done in the current framework by simply
changing the config? I understand that this change would mean a big
hit in performance, just wondering how flexible is the current
framework. Thanks!
--~--~---------~--~----~------------~-------~--~----~



premultiplied alpha

by Mike Reed » Mon, 13 Apr 2009 13:33:32 GMT


 As you say, there is a performance hit, but today you can get this by
calling Bitmap.getPixels(). It always returns unpremultiplied pixels.
If you want the system to native draw in unpremul, that's a
different/harder story.

On Thu, Apr 9, 2009 at 4:44 PM, hackerEnthusiast



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. layout_weight is inconsistent for horizontal and vertical orientation.

Hi everybody!

I have played around a bit with the xml files for creating layouts and
can't explain the behaviour of layout_weight when using it in a
LinearLayout that has orientation="vertical"

When creating a layout that is horizontal everything follows the
documentation, that a child would get more space if it's has the
highest value.


But the following code for vertical orientation, give more space to
the item with lowest weight.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="3">
        
                <TextView
                    android:text="test"
                    android:gravity="center_horizontal"
                    android:background="#aa0000"
                    android:layout_width="wrap_content"
                    android:layout_height="fill_parent"
                    android:layout_weight="1"/>
                        
    </LinearLayout>

    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="2">

       <TextView
            android:text="test"
            android:gravity="center_horizontal"
            android:background="#00aa00"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1"/>
        
        </LinearLayout>
</LinearLayout>


And the question is: Is this a bug or just a feature that maybe need
more documentation?

Best Regards
Lars Dunemark

--~--~---------~--~----~------------~-------~--~----~

2. problem while opening the Connection

hi this is anitha. I am new to andriod.  While i was trying to open
the connection through coding it raises an error like the below one.

[2009-04-09 15:16:53 - DeviceMonitor]Error reading jdwp list: EOF
[2009-04-09 15:16:53 - DeviceMonitor]Connection Failure when starting
to monitor device 'emulator-5554' : device (emulator-5554) request
rejected: device not found

2)Please give me the solution  to avoid this error and also where the
database is created in eclipse.exe editor. pls let me know . Its a
little bit urgent.

Thanks&Regards
Anitha.A

--~--~---------~--~----~------------~-------~--~----~

3. ADP1 device not listing by adb devices command in Ubuntu.

4. setOnKeyListener does not works with MapView

5. ADP1 device is not listing by adb devices command in Ubuntu.

6. How could add a new src folder into android src for compiling?

7. Positioning a Dialog at a required location (x,y)