You can resize the panel. I wrote a tphoto component a while ago, a
descendant of TPanel, it resizes the image and itself according to the
image dimensions to preseve aspect ratio. Which leaves a nice
beveled phot frame around the photo.
On 27 Mar 99 at 7:00, Alistair George wrote:
> Hi All.
> MyApp creates a video capture window, based on the handle of a panel. The
> syntax of creation is thus:
> HwndC:=capCreateCaptureWindowA(
> 'CamSnap', // window name if pop-up
> WS_Child or WS_visible, // window style
> 0, 0,
> panel1.width, panel1.height, // window position and dimensions
> panel1.Handle, 0);
> Which is all well and good, but unfortunately, I am stuck with the
> dimensions of the panel size.
> For example, if the video format is 640x480, and the panel is designed @
> 320x240 the video available from the panel is that size, and the image
> quality is degraded.
> What I really need is some component which acts like a panel handle, but
> doesnt give the size constraints. An image part would be perfect, because it
> is scaleable, but it doesnt have the panel properties that are needed.
> Any suggestions??
> Thanks,
> Alistair+
>
> ---------------------------------------------------------------------------
> 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