A component for drawing (Gao graph, bar chart, various shape image components)

Source: Internet
Author: User
Why say is a good thing, everybody look below the introduction to know
The component has two versions, one is a registered version, and one is a non-registered version
Non-registered version features: (although unregistered, but can always use the Oh, this is also a
What I strongly recommend for one of the reasons)
1. Graphics files can be generated in JPEG format
2. A graphic file that produces transparent GIF format
3. Graphic files that can be generated in interlaced GIF format
4. There are two ways to save a graphics file: One is to generate a graphic file directly
The other is to save it in an array and output it directly to the WWW page.
5. You can draw text graphics and support the text of any font installed on your machine
6. You can export and preview documents generated by OLE service programs, such as Ms Word,excel, and so on.
7. You can use bitmaps to freely zoom, mirror, rotate, and cut graphics
8. You can use the local graphics cache
9. Can zoom pictures
10. Can get more information on any JPEG, GIF, BMP format file
11. Can do Windows grab screen
12. Animated GIF can be generated
The non-registered version is limited as follows:
1. You can only use up to 8 colors, but I think it's not a limit for most people,
Oh
2. The maximum graphic size that can be generated is 320x240
If it is a registered version:
13. Available to modify existing GIF, JPEG, and BMP files online
14. Customizable palette
15. Loop-screened GIF animation
Example program:
Examples of VBScript:
Set Obj=createobject ("Shotgraph.image")
size=201
Obj. CreateImage size,size,4
Obj. SetColor 0,255,255,255
Obj. SetColor 1,0,0,0
Obj. SetColor 2,255,108,0
Obj. SetColor 3,0,0,204
Obj. Setbgcolor 0
Obj. FillRect 0,0,size-1,size-1
Obj. Setdrawcolor 1
Obj. Line Size-1,0,0,size-1
Obj. Setbgcolor 2
Obj. Ellipse 5,5,size-6,size-6
Obj. Setbgcolor 3
Obj. Ellipse 5, (size-5)/4,SIZE/2, (size-5) *3/4
Obj. Gifimage 0,1, "test.gif"
Example code for ASP:
Response.contenttype= "Image/gif"
Set Obj=server.createobject ("Shotgraph.image")
size=201
Obj. CreateImage size,size,4
Obj. SetColor 0,255,255,255
Obj. SetColor 1,0,0,0
Obj. SetColor 2,255,108,0
Obj. SetColor 3,0,0,204
Obj. Setbgcolor 0
Obj. FillRect 0,0,size-1,size-1
Obj. Setdrawcolor 1
Obj. Line Size-1,0,0,size-1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.