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

  • SEARCH
  • Home
  • 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 755913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:11:07+00:00 2026-05-14T15:11:07+00:00

What I want is to create a vector drawing program with layers, but to

  • 0

What I want is to create a vector drawing program with layers, but to avoid using transparency / opacity, I want to draw each shape from lowest layer to highest layer onto a single bitmap. For the filling, I want to floodfill the shape. My issue is that, if I have a shape that is drawn then floodfilled, then the next shape overlaps it a bit and that new shape’s border is the same as the other one’s then floodfill will only partially fill it. Is there a way given a shape’s coordinates that I can find the actual bounds for floodfill rather than use a target color?
Thanks

  • 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-14T15:11:07+00:00Added an answer on May 14, 2026 at 3:11 pm

    Floodfill will not work for what you want… Unless, you make one of the following:

    Option 1: Use the floodfill in other part of the memory, and then blit the shape using a mask to the place where you want, since you said you wanted to avoid transparency, this option is sort of crossed out… (altough I still recommend it, really, it is not hard to make a if that checks if that pixel is or not to be copied)

    Option 2: Use only basic shapes, that you can fill easily without using floodfill, filling them with horizontal lines with the starting and endpoint being between the two end pixels of each line of the shape. That would be for squares, circles…

    Option 3: Same as option 2, but allowing arbitrary triangles.

    Option 4: Same as 3, but allowing you to read a list of points, and compose the object with several rectangles, so you can make any arbitrary shape (even convex ones). That one would be really hard to implement properly (specially convex shapes).

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

Sidebar

Related Questions

I have an R question--I want to make a vector of functions, and then
Criteria, don't want creating copies of objects all over the place. Should be fast,
I have a class called SparseMatrix which contain a private vector of type Cell.
I constructed my own little Opencl example using different sources on the net. The
I am hoping this is possible in C++. I have a list of classes
I need to have a dynamic array, so I need to allocate the necessary
My question is best illustrated with a code sample, so let's just start off
Given a set of functions, such as: template<class A1> Void Go(A1 a); template<class A1,
Is it possible to use boost::fusion::invoke function to call a function that has default
I have a single-threaded linux app which I would like to make parallel. It

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.