Aah, I had a similar problem for photos of clients and products on
record display. I created a TPhoto component that resizes itself and
draws a picture frame. It also knows the max size it is allowed to
go to.
On 1 Jul 99 at 10:18, Alistair George wrote:
>
> No, say we have a reference image, into that image is going any size (due to
> the scanner areas being variable) what I want to do is display any image
> inside the reference image, but retain the correct perspective for the image
> which is tricky, because the aspect of the reference image will be different
> to the incoming image.
> For example, if we have a large rectangle, and we have a square reference
> image, the rectangle needs to be viewed as a rectangle in the square
> reference image. Where the source image will always be a variable and the
> reference image will always be fixed.
> thanks,
> Al+
> > I am missing something. How does 360x270 have the aspect ratio
> > (is that what you mean by perspective) as 480x220 ?
> >
> >
> > On 30 Jun 99 at 12:08, Alistair George wrote:
> >
> > > I acquire an image from a scanner, which could be any size, and
> > it needs to
> > > go into another image where the FRAME size remains consistent.
> > > This means that say the acquired image is 480 wide and 220 height the
> > > resulting image retains the perspective but shrinks, or expands
> > the scanned
> > > image. For example, for the above dimensions the desired image
> > remains at
> > > 360x270, and fits the 480x220 with same scanned perspective.
> > > Have tried various programatic ways, but so far none have
> > worked - I keep
> > > losing the correct perspective.
> > >
> > >
> > ------------------------------------------------------------------
> > ---------
> > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> > > Website: http://www.delphi.org.nz
> > >
> > Rohit
> >
> > ======================================================================
> > CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
> > PH (649) 489-2280
> > FX (649) 489-2290
> > email [EMAIL PROTECTED] or [EMAIL PROTECTED]
> > ======================================================================
> >
> > ------------------------------------------------------------------
> > ---------
> > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> > Website: http://www.delphi.org.nz
> >
>
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
Rohit
======================================================================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280
FX (649) 489-2290
email [EMAIL PROTECTED] or [EMAIL PROTECTED]
======================================================================
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz