Basic concepts of windows 7




















They are the basic building blocks that you use to create compositions and animations in your application UI. In programming terms, a visual is an object that has a set of properties, and exposes an interface that you use to set the value of the properties.

A visual's Content property associates a particular bitmap with the visual, while other properties control how DirectComposition positions and manipulates the visual as it is rendered to the screen. For more information, see Properties of a Visual.

DirectComposition creates a composition from a hierarchical collection of visual objects called a visual tree. The visual at the root of a tree is called the root visual and it can have one or more child visuals associated with it.

A child visual can have one or more child visuals of its own. Any visual that has associated child visuals is called a parent visual , and all child visuals that share the same parent are called sibling visuals.

A particular visual along with all its child and descendent visuals is called a visual subtree. A visual's location in the tree helps determine its screen position and z-order relative to the other visuals in the composition.

The root visual is positioned relative to the upper-left corner of the client area of the target window where the composition is rendered.

All child visuals are positioned relative to the upper-left corner of their parent visual or the visual specified by the TransformParent property , and always appear in front of their parent in the z-order. The following illustration shows a composition of visuals and the structure of the visual tree used to produce the composition. Visual 1 is the root visual and is also the parent of child Visuals 2 and 3, which are sibling visuals.

Visual 3 has two child visuals of its own, Visuals 4 and 5. Together, Visuals 3 through 5 make up a visual subtree. A parent visual maintains an ordered list of its child visuals. When sibling visuals are positioned such that they overlap one another, DirectComposition sets the z-order of the siblings based on the order in which they appear in the parent visual's children list. A sibling that appears later in the list is placed in front of all siblings that appear earlier in the list. The following illustration shows the z-order of overlapping child visuals.

A visual object exposes a set of properties that enable you to set the bitmap content for the visual, and to control how DirectComposition positions and manipulates the visual content.

The following sections describe each property in detail. A visual's Content property specifies the bitmap content that is associated with the visual. This is the bitmap that DirectComposition uses when you include the visual in a composition.

For more information about the types of bitmap content supported by DirectComposition, see Bitmap objects. The Clip property of a visual specifies a rectangular area called the clipping region or clip rectangle. When a visual is rendered, only the portion of the visual that falls inside the clipping region is displayed, while any content that extends outside the clipping region is clipped that is, not displayed. DirectComposition supports clipping regions that have rounded or squared corners.

The BorderMode property specifies how to compose the edges of bitmaps and clips associated with this visual, or with visuals in the subtree rooted at this visual. Please refer to office for formal quotation.

Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Layers make it easy Hats are popular because we can You probably lead a busy life and may Teenagers need to have a routine in order to thrive, and they Heck, you may still have a few The jacket, for example, comes in handy After the last couple of years, many Read More. Read More…. Life Style. During the winter months, toddler clothes should be warm and cozy enough for naps and play.

What Is a Snapback Hat? Did you know that the hat and cap industry is worth 2. When you have a special bond with your child, it's easy for you to understand their unique form of communication Working while being a parent can be challenging at times, especially when it comes to finding child care providers while Keeping your house clean can be difficult even before you have children.

When you have a teenager, change is tricky. Previous Page. Next Page. Useful Video Courses. Software Engineering Basics 80 Lectures 7. More Detail. Previous Page Print Page.



0コメント

  • 1000 / 1000