This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Stretching a Surface


Stretching a Surface

Postby Slim » Sep 23, 2004 @ 11:28am

Slim
pm Member
 
Posts: 17
Joined: Aug 30, 2004 @ 3:04pm
Location: Sweden


Postby Conan » Sep 23, 2004 @ 5:12pm

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Kzinti » Sep 23, 2004 @ 5:14pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fzammetti » Sep 23, 2004 @ 8:07pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Kzinti » Sep 23, 2004 @ 9:11pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fzammetti » Sep 23, 2004 @ 9:36pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fast_rx » Sep 23, 2004 @ 10:19pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby fzammetti » Sep 24, 2004 @ 12:17am

fast_rx, would it be enough to expose the BlitTransformation() method, and then just document a number of generically useful matrixes? In my mind that would be a pretty good deal, even without Thierry (or anyone else) implementing extra functions...
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fast_rx » Sep 24, 2004 @ 4:01am

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby fzammetti » Sep 24, 2004 @ 4:07am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Slim » Sep 27, 2004 @ 11:12am

Slim
pm Member
 
Posts: 17
Joined: Aug 30, 2004 @ 3:04pm
Location: Sweden


Postby fast_rx » Sep 27, 2004 @ 2:45pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 27, 2004 @ 4:24pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Slim » Sep 28, 2004 @ 1:50pm

Yes, it's a good idea to specify three corners and calculate the fourth.

The problem is that I don't want to mess around with the matrix without guidance (I actually don't understand how it works).

Let's say I want to use BlitStretch and create a surface with corners on (0,0) (100,0) (10,100) (110,100). The source is a Rect(0,0,100,100).

What should the matrix look like? Today the matrix in BlitStretch(...):
T[0][0] = rx;
T[0][1] = 0;
T[1][0] = 0;
T[1][1] = ry;
T[2][0] = -destRect.left * rx + (srcRect.left << 10);
T[2][1] = -destRect.top * ry + (srcRect.top << 10);


How should each element in the matrix in my case be calculated? It should be a general solution to it, shouldn't it?

Once again thanks for replying and sorry for causing so much trouble about this stretching-thing.
Slim
pm Member
 
Posts: 17
Joined: Aug 30, 2004 @ 3:04pm
Location: Sweden


Postby fast_rx » Sep 28, 2004 @ 3:57pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum