Home > Software engineering >  VBA Boolean operation of graphical objects?
VBA Boolean operation of graphical objects?

Time:09-19

Is the new increase in similar Office2010 function, can put the two graphics objects (such as two rectangular) (not) to do all kinds of merger, shear, etc.,

thank you

CodePudding user response:


So-called graphic Boolean operation is the first thing to get two graphics overlap region, and then according to the rules of operation of the original graphics fill or invisible,

Divided into two kinds, one kind is vector graphics processing, is a bitmap handle,
T vector graphics is a heap of graphics, main job is to calculate the edge of the intersection, for two graphics traverse line, get all the points of intersection, fill or invisible for vector drawing part is nothing more than cutting edge line segment, and then in another part of the edge line group, can put the original graphic edge formed as a closed loop of the list, the middle part of the replacement, replace the starting point is to get in front of the intersection point, of course, there may be multiple points of intersection, and then to draw graphics,
If the graph is a graph, the overlapping area mainly judged according to the corresponding color coordinates, fill or invisible is completed by regional coloring,

CodePudding user response:

Call GDIplus related functions?

CodePudding user response:

May I have no clear, I again careful said:
1, if there's a built-in functionality in VBA?
2, it is at a number of graphical objects (Shape), which is for those who use Office own graphics functions to draw graphics,

CodePudding user response:

reference tjlaoji reply: 3/f
may I have no clear, I again careful said:
1, if there's a built-in functionality in VBA?
2, it is at a number of graphical objects (Shape), which is for those who use Office own graphics functions to draw graphics,

You this is called "under the meticulous said"?
Also not heel did not say about...

CodePudding user response:

Basically manual Office can do, use VBA for Office also can do,

CodePudding user response:

Start recording macros in the Office, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,

CodePudding user response:

I feel that it is better to be matlab dry
  •  Tags:  
  • VBA
  • Related