https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/43697&feed=atom&action=history
Microsoft KB Archive/43697 - Revision history
2024-03-29T02:25:23Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/43697&diff=184357&oldid=prev
3155ffGd: importing KB archive
2020-07-18T16:56:24Z
<p>importing KB archive</p>
<p><b>New page</b></p><div><div id="nsbanner"><br />
<br />
<div id="bannerrow1"><br />
<br />
{|<br />
| Knowledge Base<br />
|<br />
|}<br />
<br />
<br />
</div><br />
<div id="TitleRow"><br />
<br />
= <span id="KB43697"></span>Lower-Right Pixels of Rectangle Not Included in FRAMERECT =<br />
<br />
<br />
</div><br />
<br />
</div><br />
<div id="nstext" valign="BOTTOM"><br />
<br />
Article ID: 43697<br />
<br />
Article Last Modified on 1/9/2003<br />
<br />
<br />
-----<br />
<br />
APPLIES TO<br /><br />
<br /><br />
<br />
* Microsoft QuickBasic Compiler for Macintosh 1.0<br />
<br />
<br />
-----<br />
<br />
<div class="notice_section"><br />
<br />
This article was previously published under Q43697<br />
<br />
</div><br />
<div class="summary_section"><br />
<br />
== SUMMARY ==<br />
<br />
The video mapping of the Macintosh, as used by Toolbox calls such as FRAMERECT(), is based upon infinitely small points instead of finite pixels. Because of this mapping scheme, when a rectangle is defined for a Toolbox call, the lower-right pixel boundary is one less than the point boundary. These calls are described on Pages 401 to 404 of the &quot;Microsoft QuickBASIC for Apple Macintosh: Language Reference&quot; manual.<br />
<br />
</div><br />
<div class="moreinformation_section"><br />
<br />
== MORE INFORMATION ==<br />
<br />
For further information on Macintosh video mapping, refer to the QuickDraw section of &quot;Inside Macintosh Volume I.&quot;<br /><br />
<br /><br />
Code Example<br />
<pre class="codesample">REM For example, the corners of the following rectangle are actually<br />
REM (100,100) and (199,199):<br />
<br />
rect%(0)=100 ' Y1<br />
rect%(1)=100 ' X1<br />
rect%(2)=200 ' Y2<br />
rect%(3)=200 ' X2<br />
CALL FRAMERECT(VARPTR(rect%(0)))<br />
<br />
This information applies to the following Toolbox routines:<br />
<br />
FRAMERECT, PAINTRECT, ERASERECT, INVERTRECT, FILLRECT<br />
<br />
FRAMEROUNDRECT, PAINTROUNDRECT, ERASEROUNDRECT, INVERTROUNDRECT,<br />
FILLROUNDRECT<br />
<br />
FRAMEOVAL, PAINTOVAL, ERASEOVAL, INVERTOVAL, FILLOVAL<br />
<br />
FRAMEARC, PAINTARC, ERASEARC, INVERTARC, FILLARC<br />
</pre><br />
<br />
</div><br />
<br /><br />
<br />
Additional query words: MQuickB<br />
<br />
Keywords: KB43697<br />
<br />
<div class="footer"><br />
<br />
<br /><br />
<br />
<br />
-----<br />
<br />
[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]<br />
<br />
<span>© Microsoft Corporation. All rights reserved.</span><br />
<br />
<br />
</div><br />
<br />
</div></div>
3155ffGd