Controls generated by ASP. NET image combinations that are similar to the Windows Word Creation Program

Source: Internet
Author: User

Recently, an interesting control has been made in the project. Let's share it with you at the root, ^_^. Special symbols are often involved in the field of Mechanical Design. For example, the inspection items of a Part include verticality and parallelism. The inspection items of each part are mostly composed of a special symbol indicating the inspection item and an error range. For example, I don't know how to read many symbols (sorry, I have never studied mechanical design )...... Windows Default fonts are not included, and it is obviously unrealistic to install a special font library for each client. Recent projects often have to deal with these special symbols. Many places need to present these things, so they naturally want to use images to display them. But new problems arise, and these symbols are not fixed. For example, the acceptable error ranges of the same inspection item (I .e. special symbols) in different parts are different, these need to be generated by the system administrator according to the actual part configuration. So I made a control that can combine to generate images.

 

The procedure is as follows:

1. position by dragging the blue area of a rectangle on the canvas of the selected size (if you need a canvas of another size, place it in "imgfactory. add an option with the content of "Number X number" under the select element in ascx ).

2. click in the middle to select a type of elements (including text, border, and special symbols. If "text" is selected, enter the text in the text box below. If a new special symbol needs to be added. add a 32*32 pixel GIF image to the specified folder configured in config. Note: The special symbol image must be named as an integer within 255)

3. Click Preview In the preview area on the right or undo the previous step.

4. If you are satisfied with the preview image, click "Save image" to generate the image as a file, save it to the specified directory on the server, and return the file name.

The source code is provided below. Currently, it is a user control and has not been packaged into a custom control. Of course, there are still some minor bugs, for example, the text cannot contain the '@' symbol (because it is used as a separator, haha). If you are interested, download it.

Imgfactory

Related Article

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.