Re: How to use correctly GetRegionData to find the square area of a polygon
From: Mike D Sutton _at_ Work (_at_)
Date: 09/10/04
- Next message: Andrew Jarvis: "Re: Obtaining paint region"
- Previous message: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- In reply to: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- Next in thread: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- Reply: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Sep 2004 16:03:27 +0100
> Instead of picking triangle, I pick rectangle via GetRegionData() and then
> sum up and estimate.
>
> Adjusting on smaller scale because I'm forced to take all the pixel on a
> diagonal line (see my post above replying on vipin) I obtain a good
> estimate...
To get a slightly more accurate estimate using this method, multiply the original polygon coordinates by 10 or so (the larger you
make it the more accurate the estimate will be but the greater the GDI and processing overhead) then divide the result accordingly -
This simulates sub-pixel accuracy.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: http://www.mvps.org/EDais/
- Next message: Andrew Jarvis: "Re: Obtaining paint region"
- Previous message: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- In reply to: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- Next in thread: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- Reply: Dev: "Re: How to use correctly GetRegionData to find the square area of a polygon"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|