OoO , i used drawbitmap(int[],....) apis  to replace my createbitmap()
and drawbitmap() methods.

Thanks a lot for your replies. I felt really dumb not to hit
ctrl+space on eclipse :-|



On Wed, Nov 4, 2009 at 6:14 PM, niko20 <[email protected]> wrote:
> Hi,
>
> OnDraw gets a Canvas object passed to it. You basically draw directly
> to this object (Use Canvas's methods to do the drawing). However, you
> won't be double buffering then so you may see some flicker.
>
> -niko
>
> On Nov 4, 5:33 am, Latha Shivanna <[email protected]> wrote:
>> > You can directly draw onto surface bound with canvas passed in in your
>> > draw handler. You don't have to always first draw into bitmap then
>> > copy from bitmap to surface.
>>
>> can you please give me some sample code for the same? It would be
>> really helpful. Or any references where i can have a look at for this
>> draw handler example?
>>
>> -Latha
>>
>> On Wed, Nov 4, 2009 at 8:50 AM, Westermann Fu <[email protected]> wrote:
>> > You can directly draw onto surface bound with canvas passed in in your
>> > draw handler. You don't have to always first draw into bitmap then
>> > copy from bitmap to surface.
>>
>> > In fact, no matter what strategy you use you have not really drawn
>> > onto screen framebuffer directly, the last action is composing done by
>> > surfaceflinger service which sit in native layer but it only export
>> > limited method you can access. I think directly accessing /dev/
>> > graphics/fb0 is not recommand by android platform.
>>
>> > On Nov 4, 12:35 am, Latha Shivanna <[email protected]> wrote:
>> >> I need some 2D apis. can anybody suggest something?
>>
>> >> Are there any ways to display a buffer on screen in native layer? I am
>> >> aware of using some ioctl calls on /dev/graphics/fb0.(But it needs
>> >> root access)
>>
>> >> Please do advise.
>>
>> >> -Latha
>>
>> >> On Tue, Nov 3, 2009 at 7:12 PM, sham shamcs <[email protected]> wrote:
>> >> > you can use opengl also
>>
>> >> > On Tue, Nov 3, 2009 at 5:54 PM, Latha Shivanna <[email protected]> 
>> >> > wrote:
>>
>> >> >> Hii All
>>
>> >> >> Can anybody please tell me how can we display a buffer on screen?
>>
>> >> >> Currently I create a bitmap using Bitmap's CreateBitmap() and render
>> >> >> it on screen using canvas' drawBitmap().
>>
>> >> >> Is there any other way of doing this in Java layer?
>>
>> >> >> Please do share your thoughts.
>>
>> >> >> thanks in advance
>> >> >> Latha
>>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups "Android Developers" group.
>> >> >> To post to this group, send email to 
>> >> >> [email protected]
>> >> >> To unsubscribe from this group, send email to
>> >> >> [email protected]
>> >> >> For more options, visit this group at
>> >> >>http://groups.google.com/group/android-developers?hl=en
>>
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups "Android Developers" group.
>> >> > To post to this group, send email to [email protected]
>> >> > To unsubscribe from this group, send email to
>> >> > [email protected]
>> >> > For more options, visit this group at
>> >> >http://groups.google.com/group/android-developers?hl=en
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to
>> > [email protected]
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to