Latest Uploads
Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

Super Shap ... ration Kit

Andy_A

Platdude Spotting

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 724|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Pokitto
Jayenkai Sun 02:00
Arduboy Owners Club
spinal Sun 01:35
Slow News
Jayenkai Sat 23:36
AGameAWeek : 2017 - Part One
Jayenkai Sat 08:31
Facebook Group
rskgames Fri 10:47
Possible LCD experimentation imminent.
steve_ancell Fri 10:30
1-2-...Never Mind
rockford Fri 07:12
Buy Zelda
rockford Wed 16:00
What Have You Done? - April 2017
rychan Wed 06:43
I Hear Voices
Jayenkai Tue 04:30
More

Latest Items
Showcase : Read Error A
Jayenkai Sat 08:28
Showcase : Hives
rockford Wed 12:53
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
Showcase : Infinitron
Jayenkai Mon 07:50
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
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
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
More

Who's Online
Krakatomato
Sun, at 04:23
Jayenkai
Sun, at 04:03
spinal
Sun, at 03:15
rychan
Sun, at 02:55
Pakz
Sun, at 00:57
rskgames
Sun, at 00:07
steve_ancell
Sat, at 20:01
Evil Roy Ferguson
Sat, at 15:43
rockford
Sat, at 10:31
zzoom
Fri, at 16:24
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.