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 7699739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:32:58+00:00 2026-05-31T22:32:58+00:00

I got a bitmap, on that bitmap I got 3 or 4 white points,

  • 0

I got a bitmap, on that bitmap I got 3 or 4 white points, then when I hit a button, it should make a square (with those points as the edges). I got 2 pictures to demonstrate what I mean, because it could be a little bit confusing.

bitmap 1 (original)

This must be “convert” to:

enter image description here

I will explain why I want/need this (short).

People can take a picture of the ground (dirt + plants) then my app calculates how many % green their is.
But to get it more accurate, they need to have 3 or 4 white poles in the ground, so the app always calculates the same region of the ground. So I want my app to connect those poles (little white squares) to 1 big square (bottom photo) then only calculate the inside of the square.

But I don’t know how to “tell” the android to connect those poles.
I know how I can “read” colors (RGB).
But how can I say that he needs to “connect” the poles?

I hope you understand what I mean, if not, tell me then I will try to improve my answer.

  • 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-31T22:32:59+00:00Added an answer on May 31, 2026 at 10:32 pm

    The solution to your problem is pretty simple.
    Say you have the following points:

    p1(x1, y1) 
    
    
    p2(x2, y1)        p3(x2, y2)
    

    The missing point, say p4 can easily be calculated and is : p4(x1, y2)
    Render your image in a panel (JPanel for example) and then draw a rectangle with the following points: p1(x1, y1) p2(x2, y1) p3(x2, y2) p4(x1, y2)

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

Sidebar

Related Questions

I got this code that should help me save an image to the servers
I've got a simple application that shows pictures dragged onto it. I'd like the
I'm still working on that bitmap I/O problem from a week ago. I got
I'm creating a datagridview transparent //I got the parent background image Bitmap parentBackGround =
Got a class that serializes into xml with XMLEncoder nicely with all the variables
Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
I've got a pure AS3 (no Flex) project that uses Flare to display and
I've got a medium scale project (a turn-based game) that's currently written in C/C++.
i have simple url of image, i want to display that image in Bitmap
I have a bitmap that I want to save to the sd card. I

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.