Re: Clip capture - thanks Mike!
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sat, 3 Dec 2005 09:29:44 +0000 (UTC)
On Fri, 2 Dec 2005 14:26:10 -0600, "ProfitMaxTrading.com"
<nospam@xxxxxxxxxxxxxx> wrote:
>If it ain't broke, don't fix it.
>
>Oh my head hurts. I went through my code changing things to vbPixels and
>then ended up with a mess on my hands. Turns out, that I did not know, that
>the Screen.object is in vbTwips. So my conversions got a bit goofy and I had
>to go back and change things to the way they were, only to find that it was
>not so easy to do! I've finally found the last few 'changes' and got them
>back to the way it 'was'.
When doing anything radical, backup first
- ideally have a simple BAT file that Zips all the relevant source
( I've suffered the same agony frequently )
>The BIG problem I see here is that some things in VB are default vbTwips and
>some things (API) is default vbPixels. This gets really confusing.
It gets worse, there are also HiMetrics
>But I believe all is back to normal and now I can focus on saving my picture
>in GIF format. BTW, you should have gotten the GIF files by now. Let me know
>if you did not.
>
>:-)
>
>
>
>"Mike Williams" <Mike@xxxxxxxxxxxxxxxxx> wrote in message
>news:dmq64u$2pu$1@xxxxxxxxxxxxxxxxxxxxxxx
>> "ProfitMaxTrading.com" <nospam@xxxxxxxxxxxxxx> wrote in message
>> news:Q30kf.11239$QW2.3667@xxxxxxxxxxxxx
>>
>>> Why in the world did they come up with Twips then? Doesn't
>>> make sense if the smallest division is Pixel.
>>
>> It's just another "real world" unit of measurement (by "real world" I mean
>> things like inches, centimetres, stuff like that). A twip is actually a
>> subdivision of a "point", which is a unit of measurement used mostly in
>> the printing industry for hundreds of years (a point is 1/72 of an inch).
>> When the printing industry became more sophisticated and could print stuff
>> with greater accuracy they had a need for a unit of measurement that was
>> smaller than a point. They came up with a "twip", which is short for "one
>> twentieth of a point". There are as I've already said 72 points in one
>> inch, as so it follows that there are 1440 twips in one inch. So, a twip
>> is just another "real world" unit of measurement. By the way, as with most
>> things with a historical background, there are people who will argue with
>> this "English" description and will start to talk about "Didot points" and
>> "French Royal Inches" and stuff like that. Take no notice of them ;-) The
>> French historically were "not quite happy with anything English" and
>> French printers had their own twips and their own points and their own
>> inches (which were, of course, not quite the same size as English points
>> and English twips and English inches). Sadly (for them) those antiquated
>> "French" units of measurement are no longer in general use!
>>
>> There are very good reasons why Microsoft originally chose to use a "real
>> world" unit of measurement (such as a twip) for the size of VB Forms and
>> stuff (mostly to do with their "Windows font size" stuff which allows
>> users with poor eyesight to see things on their monitors at a slightly
>> larger size and which is too complicated to explain in detail in this
>> message). However, it all turned out to be more trouble than it was worth
>> and they have now ditched the idea and gone back to pixels in their dotnet
>> stuff (as far as I know - I've never actually tried dotnet).
>>
>> As far as units of measurement themselves are concerned, any graphs and
>> arcs and circles and things you draw can be held in great detail in the
>> actual VB code (so that, for example, you can calculate with great
>> accuracy the height of a sine wave at any given point in its cycle simply
>> by using Singles or Doubles). It's only when you come to displaying it on
>> the screen (and reading the displayed screen pixels) that you are limited
>> by the pixel resolution of the display. It doesn't actually matter in
>> practice though, because generally the screen display is purely for
>> "looking at", and it doesn't need to be drawn with absolute accuracy. The
>> limited resolution of the display does not prevent you from storing the
>> data itself in your VB variables with as much accuracy as you want.
>>
>> Mike
>>
>>
>>
>>
>>
>>
>>
>
>
.
- Follow-Ups:
- Re: Clip capture - thanks Mike!
- From: ProfitMaxTrading.com
- Re: Clip capture - thanks Mike!
- References:
- Re: Clip capture
- From: ProfitMaxTrading.com
- Re: Clip capture
- From: Mike Williams
- Re: Clip capture
- From: ProfitMaxTrading.com
- Re: Clip capture
- From: mike williams
- Re: Clip capture
- From: Mike Williams
- Re: Clip capture - thanks Mike!
- From: ProfitMaxTrading.com
- Re: Clip capture - thanks Mike!
- From: mike williams
- Re: Clip capture - thanks Mike!
- From: ProfitMaxTrading.com
- Re: Clip capture - thanks Mike!
- From: ProfitMaxTrading.com
- Re: Clip capture - thanks Mike!
- From: ProfitMaxTrading.com
- Re: Clip capture - thanks Mike!
- From: mike williams
- Re: Clip capture - thanks Mike!
- From: J French
- Re: Clip capture - thanks Mike!
- From: ProfitMaxTrading.com
- Re: Clip capture - thanks Mike!
- From: Mike Williams
- Re: Clip capture - thanks Mike!
- From: ProfitMaxTrading.com
- Re: Clip capture
- Prev by Date: Re: PictureBox1.Picture.Width
- Next by Date: Re: memory
- Previous by thread: Re: Clip capture - thanks Mike!
- Next by thread: Re: Clip capture - thanks Mike!
- Index(es):
Relevant Pages
|