CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Aug 04, 2003 11:22 am Post subject: Draw DLL Visual Dialogscript 5.x Interface |
|
|
Draw DLL Visual Dialogscript 5.x Interface
Quick Info - Modify Bitmaps.
VDS version - VDS 5.x +
Windows version - Win 9x/2k/NT/XP
Not compatible - Win9x
Non-VDS/Non System dll -Yes.
API - Yes.
Tested on - Win XP.
Difficulty Rating - Beginner/Intermediate/Advanced
This is a small freeware DLL that encapsulates several API DRAW functions into a easy to use interface.
The functions have been simplified further by building an include file.
So you have more than 20 easy to use english like commands/functions available which helps in manipulating a bitmap on your Visual Dialogscript dialog.
This can be helpful for image editing, Adding Special effects to your VDS dialog.
Please note that this script uses non VDS dll and API calls.
Download the dll with include files and images at
http://codescript.vdsworld.com/VDS5src/Drawdll.zip
Have fun !!
Happy photo editing
Code: |
InvertPicture NameofDialogElement (a line dialog element enclosing a bitmap)
GradientFill NameofDialogElement,Red,Green,Blue,Steps (Each of Red Green Blue should be 1 or 0 i.e. Use or not. Steps is a number)
Brightness NameofSourceDialogElement,NameofDestinationDialogElement,ChangePercent+/-
CopyImage NameofSourceDialogElement,NameofDestinationDialogElement
Pixelate NameofSourceDialogElement,NameofDestinationDialogElement,size
Dither NameofDialogElement,name of bitmap present in same directory
EarthQuake NameofSourceDialogElement,NameofDestinationDialogElement,size (size decides the strength of the quake)
MixPictures NameofSourceDialogElement,NameofDestinationDialogElement,NameofMixDialogElement(another line dialog element enclosing a bitmap)
Duotone NameofSourceDialogElement,NameofDestinationDialogElement,R|G|B,R|G|B,R|G|B (Each of R, G and B should be number between 0 and 256)
DrawPattern NameofSourceDialogElement,NameofDestinationDialogElement,NameofPatternDialogElement,R|G|B,R|G|B,R|G|B
ShadeRect NameofDestinationDialogElement,R|G|B,R|G|B,R|G|B
@GetRotatedDimensions(NameofSourceDialogElement,Rotation in degrees)
SizeToRotatedDimensions NameofSourceDialogElement,NameofDestinationDialogElement,Rotation in degrees
Rotate NameofSourceDialogElement,NameofDestinationDialogElement,Rotation in degrees
@GetRGB(aColor) (Retuns the RGB colors in the format R|G|B)
BitmapToRegion ClassNameOfWindow,NameOfBMPfile,R|G|B,R|G|B,R|G|B,tolerance (tolerance is a number in percentage e.g. 10)
CreateMask NameofSourceDialogElement,NameofDestinationDialogElement,R|G|B,R|G|B,R|G|B
TransBlt NameofSourceDialogElement,NameofDestinationDialogElement,NameofMixDialogElement,R|G|B,R|G|B,R|G|B
ChangePixels NameofSourceDialogElement,NameofDestinationDialogElement,R1|G1|B1,R1|G1|B1,R1|G1|B1,R2|G2|B2,R2|G2|B2,R2|G2|B2(1 = source pixel color 2 = Destination pix col)
DrawInvertedBitmap NameofSourceDialogElement,NameofDestinationDialogElement,Horizontal,Vertical (Replace Horizontal/Vertical by zero to prevent inversion in that plane)
Hue LINE2,LINE2,R,G,B |
_________________________________________________________________________________________________________________________________________________________________________________ _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension
Last edited by CodeScript on Mon Aug 04, 2003 12:08 pm; edited 1 time in total |
|