===============================================================================
 TITLE
-------------------------------------------------------------------------------
 Product: NKImageForm component for Delphi 4
 Version: 1.0, 16.Feb.2000
 Author : Nenad Konstantinovic,  Skopje, Macedonia
 E-Mail : k_nenad@hotmail.com

===============================================================================
 FILES
-------------------------------------------------------------------------------
 NKImageForm.pas	The component source code
 NKImageForm.dcr	The component resource (icon for the component palette)
 NKImageForm.txt	This file

===============================================================================
 DESCRIPTION
-------------------------------------------------------------------------------
 This is an image component with additional functionality: when placed on
 a form, it can change it's appeareance. The form will look the same as the
 image, with a selected color (or a range of colors) appearing as transparent.
 It also provides a possibility to move the form by clicking on the image and
 dragging, since the title bar of the form is lost.

===============================================================================
INSTALLATION
-------------------------------------------------------------------------------
 To install the component, go to the 'Component/Install Component...' menu,
 put 'NKImageForm.pas' in the 'Unit file name' box, specify a new or an
 existing package, and click 'OK'.
 (The procedure might differ for other versions of Delphi)

===============================================================================
 USING
-------------------------------------------------------------------------------
 Just put the component on a form, specify a bitmap in the Picture property,
 and use these properties and methods to get the results you want:

 New properties:		Meaning:
 - TransparentColor:TColor	Color to be treated as transparent
 - Tolerance:Integer		How many colors around TransparentColor are
				  treated as transparent
 - MoveForm:boolean		Can the form be moved by click&drag on the
				  image
 - SolidControls:boolean	Are other controls on the form rendered
				  according to the image, or appear solid
 - AutoRender:TAutoRender	What happens when the form is created, or
				  when the image is changed:
				=arNone: nothing, you will have to call the
				  Render method explicitly
				=arColor: the form is rendered with the
				  current TransparentColor value
				=arTopLeft: the TransparentColor is set to
				  the value of the top-left pixel, and the
				  rendering is performed
				=arTopRight,arBottomLeft,arBottomRight,arCenter
				  in a similar way as arTopLeft

 New methods:			Meaning:
 - Render			Render the form with the current
				  TransparentColor value
 - Render(Color:TColor)		Set TransparentColor to Color and render
 - Render(X,Y:Integer)		Set TransparentColor to the color of the
				  pixel on coordinates X-Y and render
 
 Important: 
 - Works only with bitmap images in the Picture property.
 - You can also change the image at run-time (see the AutoRender property
   for the component behaviour).
 - If you want the form to be resized to match the new image size when
   you change the image at run-time, set the AutoSize property to True.

===============================================================================
 KNOWN BUGS
-------------------------------------------------------------------------------
 None found during the testing (on Delphi 4).
 You'll get a slower repainting when the shape of the form gets too complex
 after rendering, but this loss of performance is at the Windows painting
 functions level.

===============================================================================
 NOTES
-------------------------------------------------------------------------------
 The component uses a piece of code originaly written by Eddie Shipman,
 which I don't remember where I found. Anyhow, thanks goes to Eddie!
 The component was created and tested with Delphi 4, but it should work
 with other versions as well. Please let me know if you test it.

===============================================================================
 SUPPORT
-------------------------------------------------------------------------------
 If you find bugs, have some questions, comments (good or bad),
 suggestions for improvement, if you like this component and use it in
 your applications, if you redistribute the component with or without any
 changes, or just wanna say 'hi', please contact me via e-mail.

 Nenad Konstantinovic
 k_nenad@hotmail.com

===============================================================================
 LEGAL ISSUES
-------------------------------------------------------------------------------
 This software is provided 'as-is', without any express or implied warranty.
 In no event will the author be held liable for any damages arising from the
 use of this software.
 This software is a 'freeware'. Permission is granted to anyone to use this
 software for any purpose, including commercial applications, and to
 alter it and redistribute it freely, subject to the following restrictions:
 1. The origin of this software must not be misrepresented, you must not
    claim that you wrote the original software.
 2. If you use this software in a product, an acknowledgment in the product
    documentation and displayed on the screen is required.
 3. Altered source versions must be plainly marked as such, and must not be
    misrepresented as being the original software.
 4. This notice may not be removed or altered from any source distribution.

===============================================================================
 DISCLAIMER
-------------------------------------------------------------------------------
 THIS SOFTWARE IS PROVIDED BY NENAD KONSTANTINOVIC "AS IS" AND ANY EXPRESS OR
 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.

===============================================================================
