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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:57:08+00:00 2026-05-27T21:57:08+00:00

I have a canvas-based drawing app that when zoomed in, I draw a miniature

  • 0

I have a canvas-based drawing app that when zoomed in, I draw a miniature of the overall drawing in one corner as a scaled Bitmap. I also have a small RectF that I draw over top of the miniature, which shows you where you are in the drawing. See first attached image.

Miniature of larger drawing

What I would like to do is to draw the scaled bitmap, then draw a RectF of the same size over top of it, with an alpha value that allows you to see the miniature, and then finally, punch a hole in the RectF that shows you where you are and allows you a clearer view of the miniature. See second attached image.

RectF with 'hole'

I’ve considered using a bitmap for the RectF with the hole already ‘built-in’, but as the hole will both be moving depending on location, and will change in size depending on scale factor, I need to do it dynamically.

I’ve looked over the RectF docs but don’t see anything that would allow me to clip the RectF with a smaller RectF that would make the ‘hole’. Any ideas?

  • 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-27T21:57:09+00:00Added an answer on May 27, 2026 at 9:57 pm

    You could use a Path with filling option.
    moveTo 0,0 and frame the whole minipic, then moveTo the first corner inside and frame/create the hole. Not sure if it works but you can also add shapes to the path.

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

Sidebar

Related Questions

I have created a canvas and draw a bitmap on it, and animate it
Requirement: To draw one Bitmap Image and rectangle(s) based on the collection of points.
I am attempting to replace the Canvas-based rendering system that I already have with
I have multiple xaml based pages stored as children of a canvas on another
I have a canvas in Flex that shall be able only to be scrolled
I have a Canvas in a Flex application which has items inside it that
I Have a canvas and would like to place silverlight elements within that canvas
I have a very basic web page that uses flot to create a canvas
A brief background: I'm working on a web-based drawing application and need to draw
I have a drawing application using html5 canvas. When the user is drawing and

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.