Latest Uploads
Platdude Spotting

Jayenkai

Nom nom nom

Jayenkai

Rainbow Trout

Pakz

King Salmon

Pakz

Snooker

Jayenkai

You've ... o have you

Jayenkai

Back to spinal's Blog ( Created 21 November 2009 | Last Edited 21 November 2009)
Rants 'n' Raves : I Hate Twips!!!!!!!
Why oh why oh why did Microsoft decide that we have to use resolution independent measurements for measuring objects??!
All I want to do is load an image and resize it to 128*128px, but will vb let me do this? NO! Absolutely everything about my program could and SHOULD be measured in pixels, in fact, almost every part of every windows application should be measured in PIXELS!
Yes I know they gave vb a nice little TwipsPerPixel variables, but guess what? They don't even work!! Eg, I load an image, resize it to 128*Screen.TwipsPerPixelX,128*Screen.TwipsPerPixelY and guess what, I prtscn the thing, measure the image in psp and the bloody thing is 124*124!!!! WTF!!! How the hell does that happen?
Then I try jiggering with the numbers, 132*Screen.TwipsPerPixelX = 128!!! huh? ok, using that logic, i set the height to 117*Screen.TwipsPerPixelY, expecting to get 115 as the height... but no! it's 113!

If anyone knows, please tell me how the hell I can resize an image to an EXACT PIXEL size. Please!!!

Latest Comments

Posted : Saturday, 21 November 2009, 10:07
Jayenkai


Never used it, but I can imagine it's the same issue as my 2D-in-3D engine.
For the most-part, it looks ok, but because of the annoying issues between 3D and 2D, it can never actually be perfect.
Zoom into my recent games, and it's all nastily anti-aliased.
Boooo...

Homepage : http://AGameAWeek.com
Posted : Saturday, 21 November 2009, 10:38
HoboBen


A thousand times this. It's insane!

Posted : Saturday, 21 November 2009, 12:53
Mog


twips, designed by twits.

Homepage : www.fearthemongoose.com
Posted : Tuesday, 29 December 2009, 09:56
Mobiius


Can't you just set the resize mode to pixels, rather than twips?

Oh and hello!

Homepage : http://www.teamdefiant.co.uk
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 550|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Laptop Aaargh...
Jayenkai Wed 17:48
Happy Birthday Evil Roy Ferguson
rockford Wed 16:21
London Car/Stab Incident
therevillsgames Wed 14:50
Watch Switch - Fitbit Blaze
Jayenkai Wed 06:23
Spinal's Return to Android
Jayenkai Tue 13:41
AGameAWeek : 2017 - Part One
Jayenkai Tue 08:10
Poll : Cooking
Jayenkai Mon 05:11
Happy Birthday, TheRevillsGames
Dabz Sun 23:32
Ravetastically Awesome!
rockford Sun 07:41
B3ta - Old Gamers
Jayenkai Fri 16:51
More

Latest Items
Showcase : Infinitron
rychan Tue 03:02
Blog : My Arduino experience.
steve_ancell Mon 20:27
Dev-Diary : PS2 to N64 Adapter
spinal Sun 10:49
Link : Vector Tutorials/Help page.
Pakz Thu 23:00
Blog : mini project
spinal Sun 10:13
Showcase : Blockman Returns
Jayenkai Fri 03:04
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
Snippet : Path Following
Pakz Mon 16:25
Snippet : Flowers (Jan 2017)
Kuron Thu 01:13
Showcase : Clusters of Hex
therevillsgames Mon 15:01
Article : Maths 101 - Episode 1: Basic Trigonometry
shroom_monk Sun 14:07
Article : Maths 101 - Episode 5: Line Intersection
shroom_monk Sun 14:02
Dev-Diary : Normals and Dot products
Pakz Sat 20:37
Pets : Molly On The Couch
Jayenkai Thu 04:32
Snippet : Additive Particle Flames
Pakz Fri 18:12
More

Who's Online
therevillsgames
Wed, at 20:39
Jayenkai
Wed, at 20:29
rskgames
Wed, at 19:14
9572AD
Wed, at 19:09
rychan
Wed, at 17:57
steve_ancell
Wed, at 17:37
rockford
Wed, at 16:21
shroom_monk
Wed, at 15:46
spinal
Wed, at 15:32
Afr0
Wed, at 14:27
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.