Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30541

casting/converting android API calls to java.awt objects

From me <noone@all.net>
Subject casting/converting android API calls to java.awt objects
Newsgroups comp.lang.java.programmer
Message-ID <rgoiw.651760$Hb3.399373@fx03.iad> (permalink)
Organization Newshosting.com - Highest quality at a great price! www.newshosting.com
Date 2014-12-11 21:45 +0000

Show all headers | View raw


I'm creating a bunch of custom graphics displays for an android app using 
the Canvas object to paint my 2D primitives onto an 
android.graphics.Bitmap.  However, I'm not ready to put these custom 
screens into Activities and push them to either a real android device or 
the emulator at this point.  I simply want to see the screens on my 
desktop using traditional awt/swing classes.

What is the most direct way to cast or convert an android.graphics.Bitmap 
object to something that can go into the paint(Graphics g) method of an 
awt widget, while maintaining image/pixel format information?

The code compiles fine on the PC with the correct classpath pointing to 
the ADT libraries, it doesn't appear that there are any trivial Bitmap 
conversion methods to bridge android->PC.

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

casting/converting android API calls to java.awt objects me <noone@all.net> - 2014-12-11 21:45 +0000
  Re: casting/converting android API calls to java.awt objects Joerg Meier <joergmmeier@arcor.de> - 2014-12-12 16:49 +0100
    Re: casting/converting android API calls to java.awt objects me <noone@all.net> - 2014-12-12 22:44 +0000
      Re: casting/converting android API calls to java.awt objects Joerg Meier <joergmmeier@arcor.de> - 2014-12-13 09:47 +0100
        Re: casting/converting android API calls to java.awt objects me <noone@all.net> - 2014-12-13 09:40 +0000
  Re: casting/converting android API calls to java.awt objects Roedy Green <see_website@mindprod.com.invalid> - 2014-12-15 16:57 -0800
    Re: casting/converting android API calls to java.awt objects me <noone@all.net> - 2014-12-16 07:36 +0000

csiph-web