Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

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 575|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Cerberus X - the continuation of Monkey X
zzoom Fri 23:13
Crystal Maze
zzoom Fri 23:02
Update All Objects in Array?
Caton Fri 20:09
CSS-Me-Do - SoCoder2
rskgames Fri 09:45
Delete Button on Showcases
Pakz Fri 09:13
Grenfell Fridge
Jayenkai Fri 09:02
ProcGen Book
Pakz Fri 07:11
XB360 /XBOne Pads
STEVIE G Thu 23:28
Winter Solstice
therevillsgames Wed 16:47
AGameAWeek : 2017 - Part One
Jayenkai Wed 15:10
More

Latest Items
Link : Learn C++
rychan Fri 03:13
Dev-Diary : My Journey into NES Development
Jayenkai Thu 03:58
Showcase : A Civilization Clone v0.4
rychan Thu 03:27
News : Newsletter #320
Jayenkai Tue 18:47
Blog : sadas
hardcoal22 Tue 02:50
Showcase : Flappadiddle
Jayenkai Mon 08:20
Article : Cookie Information
rychan Sun 12:28
Dev-Diary : Wii to N64 adapter
spinal Sat 11:50
Link : MonkeyX code examples
Jayenkai Sat 06:42
Link : Available Languages
Jayenkai Thu 13:22
Blog : Mr Testo Tests
Socoder Tue 07:21
Link : Chrome VR Experiments
Jayenkai Tue 06:49
Showcase : Orbital Projectiles
Jayenkai Tue 06:39
Showcase : Hives
zzoom Fri 16:10
More

Who's Online
Caton
Fri, at 23:24
jprofitt
Fri, at 23:22
zzoom
Fri, at 23:13
Pakz
Fri, at 22:59
9572AD
Fri, at 22:45
rskgames
Fri, at 21:57
therevillsgames
Fri, at 19:11
GfK
Fri, at 18:37
Jayenkai
Fri, at 16:31
steve_ancell
Fri, at 16:31
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.