Pixels to Cm
Pixels to Cm
Pixels to Cm
Pixels to Cm
Pixels to Cm
Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm
Pixels to Cm Pixels to Cm
Pixels to Cm
Go Back  Xtreme Visual Basic Talk > > > Pixels to Cm


Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2004, 11:25 AM
Mikecrosoft's Avatar
Mikecrosoft Mikecrosoft is offline
Mexican Coder
 
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
Default Pixels to Cm


Is there a way to convert Pixels to Centimenters like VB6 ScaleX or ScaleY ??

Thanks

Mike
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
Reply With Quote
  #2  
Old 04-20-2004, 07:14 AM
bilmks bilmks is offline
Newcomer
 
Join Date: Mar 2004
Posts: 17
Default

What do you mean? cm on the screen? If i use a 17'' monitor with 1024 x 768 resolution 1 cm = 1024/32 = 32 pixels (a 17'' mon. is 32 cm wide). With the same monitor and 800 x 600 res. 1 cm = 800/32 = 25 pixels.
Reply With Quote
  #3  
Old 04-20-2004, 08:30 AM
Mikecrosoft's Avatar
Mikecrosoft Mikecrosoft is offline
Mexican Coder
 
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
Default

I need to convert pixels to Cm, but I will use this to print a report, due a Spreadsheet that uses the Pixels as measure unit and I need to expres that size in CM in the printed report (Columns width in the paper).
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
Reply With Quote
  #4  
Old 08-23-2004, 05:43 PM
Mikecrosoft's Avatar
Mikecrosoft Mikecrosoft is offline
Mexican Coder
 
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
Default

Is there a way to solve this ?????

Thanks
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
Reply With Quote
  #5  
Old 08-24-2004, 06:30 AM
AtmaWeapon's Avatar
AtmaWeaponPixels to Cm AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

Now I just happened to be reading the chapter on pages and transforms in Charles Petzold's Programming Windows with VB.NET, and it does have this.

According to him, printer coordinates are always in units of 0.01 inch, for whatever reason.

The example program I'm looking at draws a 10-cm ruler on the screen, and apparently will print one too. I think this should give you a good idea how to do it. It's too much to type before heading off to work, but I'll try to attach the files he used for it.

Why is .bas a valid file attachment but .vb isn't?
Attached Files
File Type: txt PrintableTenCentimeterRuler.txt (749 Bytes, 55 views)
File Type: txt PrintableForm.txt (1.5 KB, 34 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pixels to Inches Jdo300 Interface and Graphics 2 03-14-2004 04:14 PM
How to change the form scale mode to Pixels rameshmelam Game Programming 2 11-29-2003 05:37 AM
Translation of twips to pixels in WIndows NT rbarella Miscellaneous Languages 1 10-31-2003 11:04 PM
Pixels? What pixels? gazmac General 3 04-02-2003 11:52 AM
Pixels not permanent after setpixel in picturebox ? Garmour API 3 02-07-2003 05:46 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Pixels to Cm
Pixels to Cm
Pixels to Cm Pixels to Cm
Pixels to Cm
Pixels to Cm
Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm Pixels to Cm
Pixels to Cm
Pixels to Cm
 
Pixels to Cm
Pixels to Cm
 
-->