Please suggest Substitute for drawRegion in android

by manohar » Wed, 25 Mar 2009 01:33:24 GMT


Sponsored Links
 Hi All,
I am converting a game from j2me to android. Instead of drawRegion i
tried using bitmap.  For translation 0 it works properly means
TRANS_NONE.  I am unable to get the out put for TRANS_MIRROR and
TRANS_MIRROR_ROT180. pls any one can guide me on this.

My drawRegion is some thing like this.
GraphicsContext.drawRegion( s.Data, sourceX,
sourceY,sourceWidth ,sourceHeight, flips, posX,posY, Graphics.TOP |
Graphics.LEFT );


can you please any one guide on this?



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



Other Threads

1. discuss steps for screenOffFinishedAnimatingLocked

Hi,

During my studying on the function screenOffFinishedAnimatingLocked(),
I feel it's strange that it suspend the system(Power.setScreenState
(false);) first, then do screen off notification
(sendNotificationLocked). By this way seems the notification may not
be executed before system goes into suspend.

Anyone knows if this is function as design or a bug or some
misunderstanding? Attach the source for you reference. Thanks!

    private int screenOffFinishedAnimatingLocked(boolean
becauseOfUser) {
        // I don't think we need to check the current state here
because all of these
        // Power.setScreenState and sendNotificationLocked can both
handle being
        // called multiple times in the same state. -joeo
        EventLog.writeEvent(LOG_POWER_SCREEN_STATE, 0, becauseOfUser ?
1 : 0,
                mTotalTouchDownTime, mTouchCycles);
        mLastTouchDown = 0;
        int err = Power.setScreenState(false);
        if (mScreenOnStartTime != 0) {
            mScreenOnTime += SystemClock.elapsedRealtime() -
mScreenOnStartTime;
            mScreenOnStartTime = 0;
        }
        if (err == 0) {
            int why = becauseOfUser
                    ? WindowManagerPolicy.OFF_BECAUSE_OF_USER
                    : WindowManagerPolicy.OFF_BECAUSE_OF_TIMEOUT;
            sendNotificationLocked(false, why);
        }
        return err;
    }

Best Regards,
Katherine

-- 

2. invitation google wave

please send me one invitation, thanks.

-- 

3. Android dev site is down?

4. SDK 2.0

5. Signing applications while building android source

6. Application or Port Directed SMS in 2.0 SDK?

7. question on WAP Push support on Android