IronSoft file Upload Image Processing Component Description 1, Function Description: This component is an ASP component, which only applies to the call of the ASP, its function is to achieve multi-file upload, generate pictures, writing, drawing, and zooming in the specified image , Cut the image of the specified area and display or save to the specified format. Second, Object Description: There are two objects in the component: DrawPIC, UPLOAD, IRONFILEDRAWPIC: Complete the processing and generating save function support image format: BMP, JPG, GIF Attribute / Method parameter Description Widen No Settle Wide Height No Settings Canvas high fontname No font Fontsize No Font Size FontStyle No Set Word Style FontColor No Set Font Color BGColor No Set Backlight Image DrawText Text, x, Y Writing TEXT TEXT , Coordinate X, coordinate YSHOWImage does not display the current picture, showing showjpg Quality displaying the current picture in BMP format, showing the compression ratio of the image, and height changes the size of the current picture, Width is a new picture Wide, Height is a new picture of the high CUT X, Y, Width, Height of the new picture, cut the specified size of the specified size, X, Y is the X, Y, Width, Height of the start-point coordinates, X, Y, Width, Height is wide And High LoadFromFile FileName Load Image Filename Filename Saves FileName Save To the specified file filename for the image saves the full path to the image, save into the corresponding format SaveasJPG FileName, Quality The picture saves to the specified file filename for the full path of the image, the compression ratio of the Quality picture SaveASGIF FileName Saves to the specified file filename for the full path of the picture, the picture format is gifdrawline X1, Y1, X2, Y2, Width Color painted from the starting point (x1, y1) to (x2, y2) line thickness width line color: colord RawRectangle X1, Y1, X2, Y2, Width, Color draw a rectangle from the upper left corner (x1, y1) to the lower right corner (x2, y2), the line thickness width line color is: all color settings above Color are Plastic
UPLOAD: Complete the Upload Properties / Method Parameter Description IronForm Formname acquires the data of the specified data field, which is equivalent to request.form in the ASP. When there is a multi-domain name, the content is "," Separated IronFileForm Formame Returns the total length of the specified form to the object IronfileTAlbyte unloaded data field
Ironfile: Uploaded file object properties / method parameter Description FileName None File Name FileType No File Type Filesize No File Length EXENAME None Extension SaveASfile FileName Saves the files in the file object to the specified file, FileName Saved file name Note: All operations above must ensure that there must be corresponding file operation permissions in the directory of operation, such as creating, modifying, deleting, etc., can see the corresponding example three, performance testing in the included sample file. Result Performance Test Uploaded on this unit. Hardware configuration is: P4 1.5G / 248MB DDR / 4200RPM Hard disk operating system: Windows 2003
Upload 2.35m file: Upload 12.2m file with 1.234s: Upload 62M file when used: 53.438s Upload 94.7m file: Uploaded by 93.063s After multiple upload, the system's occupation memory is not significantly increased.
IV. Copyright Description 1, this component is made by Chen Linzhang independently, protected by intellectual property law, no one may track, disassemble, and modify it. 2, anyone can use it free of charge when complying with Article 1. 3, if you have any questions or suggestions you can contact me: 5, contact information e-mail: sysroot@163.com QQ: 82086163 Download address: http://www.ironsoft.net/soft/ironsoftdraw.rar