Preliminary discussion on developing a simple version of similar Photoshop software using VB6.0

Source: Internet
Author: User
Tags comments

Example Project: Http://files.cnblogs.com/laviewpbt/ImageShop.rar

Statement: 1, if you have comments or look down on VB language, you still welcome comments, but please do not use abusive language to comment.

2, this article does not consider the commercial feasibility of the project and the necessity.

3, this article does not exist to attack other languages.

I've been thinking about this a long time, from the graduation design to do image detection began to contact the image, to work in the spare time to study the image, probably also has a four or five years, the program also from the beginning of the sporadic to a small full version, often in the walk or before bedtime for a problem solution and thinking, Also once lost and temporarily lose interest. Although so far, the whole project is still improving and improving, but I can not wait to discuss the feasibility of all aspects.

First, the speed of operation.

I think that's why a lot of people are making the first objection to my idea. Many people have said VB slow, VB very rubbish, of course, even now there are many people have this understanding and ideas. I'm not going to comment on this, I'll just look at the speed problem from a few points.

1, the problem of VB itself. Indeed, in many aspects of VB design is flawed, although for the convenience of user development, it encapsulates a lot of low-level operations, but makes us face some problems difficult to start, but these in the image processing is rarely reflected. There are a lot of algorithms in the image, and these algorithms are often related to the calculation of the pixel value, what is the pixel value is generally expressed in the byte type variable, VB even how bad, for these integers subtraction calculation speed is more than other languages, I do not think so, vb compiler is not so stupid.

2, the problem of the pointer. VB does not explicitly provide us with pointers, and image computing is often dealing with the pointer. Indeed, this is the pride of C-Class language, VB for security, shielding the user to the pointer, resulting in the speed of a certain degree of loss, however, love VB Heroes in a long time ago to find the path to the secret door of the trail----analog pointer, because it is analog, so the efficiency of a little lower than c a little bit, But not 50% or even less, so I don't think it's a problem.

3, the complexity of the problem. Image editing software is very complex, VB can handle such a complex process, this thing at a certain level, with other languages can be achieved, I think VB will not have any problems.

4, optimization problems. In fact, in many cases, VB slow because the program did not do optimization, such as not using the appropriate data types, not the right to use the intermediate data, the wrong use of the operator, you can check the table where the use of the loop and so on, according to my personal experience, the same algorithm, I am optimized and others with other tools to optimize the implementation of the results will not have any discrepancy.

From the above 4 aspects, the use of VB and other languages should be no big difference. Feasible.

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.