Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6964001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:52:06+00:00 2026-05-27T15:52:06+00:00

suppose my bitmap is like This image is actually in square transparent. I want

  • 0

suppose my bitmap is like balloon
This image is actually in square transparent. I want to get the only viewable points as array so I can bound it and handle touch event on canvas. Right now it is square so when I touch at the corner of the image it still detect touch event on image. i don’t want to do like this. Only if user clicked on viewable part then only action would be taken otherwise not.

For temporary I have used radius of image from center point it works fine but accurate, also if this image triangle part length is long then if it remain in square format user fill/get event on image outside.

I have used canvas to draw bitmap. Is there any other way or easy way to do this thing and handle event.

I have seen many games in that they used like custom shapes and touch event fire only on display part of object, how could i achieve this things.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:52:07+00:00Added an answer on May 27, 2026 at 3:52 pm

    Take a look at coordinates:
    Android Canvas Coordinate System
    and
    http://code.google.com/p/apps-for-android/source/browse/trunk/SpriteMethodTest/src/com/android/spritemethodtest/CanvasSprite.java?r=150
    Which goes into sprite:
    http://p-xr.com/android-tutorial-how-to-paint-animate-loop-and-remove-a-sprite/

    This may help too:
    http://www.droidnova.com/playing-with-graphics-in-android-part-vi,209.html

    Some of that should be helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I want to define an enum pointing to an array of objects. Can
Suppose I have a class that looks like this: class Derived : // some
Suppose I have a grid of squared defined like so in a class: Square
I want to get the width of a bitmap after loading it and i
I'm currently at the point where I can convert Bitmap into byte arrays. Suppose
Suppose I already have a bitmap (an image) in Device (Video) Memory using cudaMalloc()
I always get responce NULL when call this method but in case if suppose
suppose I have {data: {243232: {id: testid,name: test } }} so how to get
Suppose I have a class that doesn't support memberwise copying so I don't want
Suppose I have a string which contains an HTML file. How do I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.