Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.pascal.borland    |    Borland Pascal was actually pretty neat    |    2,978 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,087 of 2,978    |
|    Femme Verbeek to suntribe    |
|    Re: image deformations?    |
|    15 Mar 06 03:02:22    |
      From: fv@nospam.tcenl.com              suntribe schreef:       > hi again,       >       > i'm sure it was spoken before but i cant find what i'm looking for on the       > google..       >       > anyways, for my thesis i need to deal with image deformations from a       > rectangular (normal) to any other shape (not specified)       >       > what a program should do is, i load a picture, the effect put's 4 point on       > the corners of the picture, then, i whenever i clik on the line between two       > points, it adds another point between them and then i can move that line in       > any (2D) direction.. with this, i form another polygon in which i must       > paint (deform) the initial image..       >       > can anyone point me on what to do? any help would do a lot..       >       > p.s.       >       > im using delphi as a programming tool..       >       Best try a Delphi group for this question. This one is about its       ancestor Borland/Turbo pascal.              If you google for bitmap tutorial Delphi, you'll find lots of examples       how to make a bitmap drawing.       Deforming it is just a matter of calculating a new bitmap from the old       one, where you must find how much of the original pixel RGB information       and of which pixels ends up in each new pixel. You must also weigh this       information, as the addition of many original pixels can never be more       than 100% of white RGB.              -- Femme              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca