3: InstallationOpen the \Install\DLL folder and execute Install.bat. ColorPicker.dll will be copied to your System32 folder to be available from any place of your computer. The same operation is necessary when your application deploying on the target computer as the library should be accessible for it. 4: TestingTest directory contains usage example for quick evaluation of this product. Please open \Test\DLL example, run Test.exe and press the "Pick Color..." button. 5: Software developmentC++ Developers: The library contains only one standard ("stdcall") function which accepts three byte parameters by reference and returns boolean value that occupies four bytes. ColorPicker library contains only one function: PickColor() This function receives three Byte parameters passed by reference as it usually works in VB. Each parameter represents Red, Green and Blue constituents of the selected color. If user clicks the left mouse button or hits Enter key during the color selection, this function returns True and each color constituent is changing to the selected color value. When there is no color picked (Esc key or right mouse button pressed), the function returns False. ...If we use a VB notation, the PickColor function declared as Private Declare Function _ PickColor Lib "ColorPicker" ( _ Red As Byte, _ Green As Byte, _ Blue As Byte _ ) As Boolean VB example of use: ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' PickColor() function: Visual Basic Example. ' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' REM: Please declare PickColor function as it is shown above. ' The library should be available to your application at ' least by environment %PATH% variable. You can just copy ' ColorPicker.dll to the system folder (C:\WINDOWS or C:\WINNT). ' ' Use RGB() function to get standard color value. ' Sub PickMyColor() Dim Red As Byte, _ Green As Byte, _ Blue As Byte If PickColor(Red, Green, Blue) = True Then MsgBox ("Red:" & Str(Red) & ", Green:" & Str(Green) & ", Blue:" & Str(Blue)) Else MsgBox ("No color picked.") End If End Sub 6: More...Feel free to download more tools from VANDOG and e-mail me from the contact page.
|
|||||||||||||||||||||||||||||||||
|