473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Rectangle.Inflate

Hi,

Why no inverse of this method? We can inflate but not deflate or shrink?
Thanks.
Jul 21 '05 #1
5 5190
Inflate is just a convenience method. You can always create a new
rectangle. I think the reason it's included is to simplify hit testing.

--

Justin Weinberg
Designing a PrintDocument? Drawing to forms?
Check out GDI+ Architect at www.mrgsoft.com
<di********@discussion.microsoft.com> wrote in message
news:um*************@TK2MSFTNGP11.phx.gbl...
Hi,

Why no inverse of this method? We can inflate but not deflate or shrink?

Thanks.

Jul 21 '05 #2
Use negative numbers for the inflate values to deflate the rectangle.

Byron Cullen
ThunderTools

<di********@discussion.microsoft.com> wrote in message
news:um*************@TK2MSFTNGP11.phx.gbl...
Hi,

Why no inverse of this method? We can inflate but not deflate or shrink?

Thanks.

Jul 21 '05 #3
Then maybe its a bad name for a method. it should be rescale() or something.
"Byron Cullen" <byroncullen_diespam_@_diespam_msn.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Use negative numbers for the inflate values to deflate the rectangle.

Byron Cullen
ThunderTools

<di********@discussion.microsoft.com> wrote in message
news:um*************@TK2MSFTNGP11.phx.gbl...
Hi,

Why no inverse of this method? We can inflate but not deflate or

shrink?


Thanks.


Jul 21 '05 #4
100
Hi,
Then maybe its a bad name for a method. it should be rescale() or something.
Maybe, but it changes the size and location of the rectangle. Thus, names as
rescale or resize are not completely correct as well, I think.

B\rgds
100

"Byron Cullen" <byroncullen_diespam_@_diespam_msn.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Use negative numbers for the inflate values to deflate the rectangle.

Byron Cullen
ThunderTools

<di********@discussion.microsoft.com> wrote in message
news:um*************@TK2MSFTNGP11.phx.gbl...
Hi,

Why no inverse of this method? We can inflate but not deflate or

shrink?


Thanks.



Jul 21 '05 #5
Transform() then
"100" <10*@100.com> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl...
Hi,
Then maybe its a bad name for a method. it should be rescale() or something.
Maybe, but it changes the size and location of the rectangle. Thus, names

as rescale or resize are not completely correct as well, I think.

B\rgds
100


"Byron Cullen" <byroncullen_diespam_@_diespam_msn.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Use negative numbers for the inflate values to deflate the rectangle.

Byron Cullen
ThunderTools

<di********@discussion.microsoft.com> wrote in message
news:um*************@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> Why no inverse of this method? We can inflate but not deflate or
shrink?
>
>
> Thanks.
>
>



Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Steven T. Hatton | last post by:
The following may strike many of you as just plain silly, but it represents the kind of delelima I find myself in when trying to make a design decision. This really is a toy project written for...
6
by: kimos | last post by:
hi all, how to calculate the intersection of 2 rectangle a rectangle is the following: Rectangle makeRectangle (Point lowerLeft, Point upperRight) { Rectangle r;
3
by: | last post by:
I am having a hard time understanding the logic behind the Rectangle object. My problem has to do with the way the rectangle treats the "Width" property. For example, take the following rectangle...
5
by: | last post by:
Hi, Why no inverse of this method? We can inflate but not deflate or shrink? Thanks.
3
by: MrNobody | last post by:
I need to use standard zlib inflate/deflate procedures... does c# support this? how/where are the relevant classes?
6
by: Pat B | last post by:
Hi, I'm writing my own implementation of the Gnutella P2P protocol using C#. I have implemented it using BeginReceive and EndReceive calls so as not to block when waiting for data from the...
4
by: RobinS | last post by:
I am drawing a rectangle on a picture that has already been drawn on the graphics area (a user control). It works something like this: //in the MouseDown event m_isDragging = true; m_oldX =...
1
by: kummu4help | last post by:
hi, i want to draw rectangle based on mousedrag event. if user dragging the mouse, then the rectangle on the applet should increase or decrease basing on current mouse coordinates. i have the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.