Grille picture and vectorial picture dynamic switching method in WEB page
Technical field:
The present invention relates to network editing technology, more particularly to the grille picture when carrying out picture insertion in WEB page and
The dynamic switching method of vectorial two kinds of forms of picture.
Background technology:
In WEB page, grille picture (or being called scalar picture or dot matrix picture) and vectorial picture are due to its own
The difference of characteristic, the editable attribute supported also have very big difference.For example, vectorial picture can rotate and grille picture just
No rotary attribute.On the other hand, when full size is shown, grille picture is more apparent than vectorial picture.Therefore, the two can be with
Saying respectively has length.But in a browser during dynamic editor WEB page, provided that two different to user
Pictorial manner, it is easy to cause obscuring for user.
Invention content:
The present invention, which solves the prior art, cannot be supplied to the most suitable insert pictures mode of editor or two kinds of inserted modes
The problem of obscuring is easily caused, a kind of two kinds of lattice of grille picture and vectorial picture when carrying out picture insertion in WEB page are provided
The dynamic switching method of formula can be inserted into automatic conversion between form at two kinds and will not cause and obscure to be supplied to editor excellent
The visual edit experience of change.
The method of the present invention includes the following steps:
A, two kinds of inserted modes of grille picture and vectorial picture on edit page are set, but be only shown to editor's one kind
The mode of insert pictures is only set as default display there are two types of a kind of in inserted mode;
B, the correspondence between all kinds of editor's attributes of picture and two kinds of inserted modes is established;
C, judge editor's attribute;
D, default display is converted according to editor's attribute and the correspondence of inserted mode.
Above-mentioned grille picture and vectorial picture are shown using the same position button with different icons.
The above-mentioned icon that is shown as is shown.
Technique effect:
The present invention is due to establishing the correspondence between all kinds of editor's attributes of picture and two kinds of inserted modes and basis
The relationship converts default display, and therefore, after user sends out edit commands, the method for the present invention can be according to editor's attribute
Whether automatic decision needs to be converted to corresponding form with the best required effect of embodiment user.
Specific embodiment:
The following detailed description of the method for the present invention.
Grille picture and vectorial two kinds of inserted modes of picture are disposed as the operable mould of edit page by the method for the present invention
Formula, in order to avoid editor obscures, edit page is only shown to the mode of editor's one of which insert pictures, default with grid
Trrellis diagram piece or vector mode show picture;It is established between all kinds of editor's attributes of picture and two kinds of inserted modes in server end
Correspondence and a kind of inserted mode set in client according to correspondence display;After editor clicks Edit button
Editor's attribute is judged by server end, is then derived automatically from the corresponding inserted mode of editor's attribute, and aobvious in client conversion
The inserted mode shown and inserting edition is carried out according to the inserted mode by editor.
Above-mentioned grille picture inserted mode and vectorial picture insertion are respectively that two kinds set on a button are changeable
Function.Thus required inserted mode can be easily shown as needed and will not cause to obscure.