Fernand Vanrie wrote:
Andrew Douglas Pitonyak wrote:
Hi Andrew I have some questions

Insert an image control into a form and associate the control to a field in the database.
Is the Image datafile stored in the database or is het just the URL of the image

I store the image in the database.

The image control has a specific size. If the control displays an image with a different aspect ratio, then the image may be severely distorted.
In the Image control we need just a sort of "representation" of the image. This represenation could be resised = ( easy to do) or croped =(more complicated in OO)

I would not change the image, just the control size.

Any thoughts on how to avoid this?
Handling with a macro  who is resising or cropping  :-)

Yes, good point. When I create the control, I set the size and aspect ration of the control. I could use a macro to change the size of the control so that the aspect ration was the same as the image. The macro would need to be called when a new image was displayed. Not certain off hand which events I would need to catch, but it sure seems like a lot of work.


greetz Fernand
Thanks for the reply!

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to