-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|592|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
spinal
Created : 21 November 2009
 
System : Windows

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!!!

 

Comments


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...
Saturday, 21 November 2009, 10:38
HoboBen
A thousand times this. It's insane!
Saturday, 21 November 2009, 12:53
Mog
twips, designed by twits.
Tuesday, 29 December 2009, 09:56
Mobiius
Can't you just set the resize mode to pixels, rather than twips?

Oh and hello!