None Stretch ImageBrush : ImageBrush « Windows Presentation Foundation « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Windows Presentation Foundation » ImageBrushScreenshots 
None Stretch ImageBrush
None Stretch ImageBrush
     

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.Samples.Graphics.RectangleExample"
    WindowTitle="Example">
  <Canvas>

      <Rectangle Canvas.Left="10" Canvas.Top="10"  Width="271" Height="100" Stroke="Black">
        <Rectangle.Fill>
          <ImageBrush ImageSource="c:\image.gif" Stretch="None"></ImageBrush>
        </Rectangle.Fill>
      </Rectangle>
  </Canvas>
</Page>

   
    
    
    
    
  
Related examples in the same category
1.ImageBrush ExamplesImageBrush Examples
2.ImageBrush TileMode="Tile"
3.ImageBrush TileMode="FlipX"
4.ImageBrush TileMode="FlipY"
5.ImageBrush TileMode="FlipXY"
6.The ImageBrush's content is vertically aligned with the top of the output area.The ImageBrush's content is vertically aligned with the top of the output area.
7.The ImageBrush's content is vertically centeredThe ImageBrush's content is vertically centered
8.The ImageBrush's content is vertically aligned with the bottom of the output areaThe ImageBrush's content is vertically aligned with the bottom of the output area
9.The ImageBrush's content is right-alignedThe ImageBrush's content is right-aligned
10.The ImageBrush's content is left-alignedThe ImageBrush's content is left-aligned
11.The ImageBrush's content is centered horizontallyThe ImageBrush's content is centered horizontally
12.With the Opacity MaskWith the Opacity Mask
13.Use an ImageBrush to paint an area with an imageUse an ImageBrush to paint an area with an image
14.Uniform Stretch ImageBrushUniform Stretch ImageBrush
15.The ImageBrush's content is not tiled in this exampleThe ImageBrush's content is not tiled in this example
16.The ImageBrush's content is tiled in this exampleThe ImageBrush's content is tiled in this example
17.The ImageBrush's content is flipped horizontally as it is tiledThe ImageBrush's content is flipped horizontally as it is tiled
18.ImageBrush's content is not tiledImageBrush's content is not tiled
19.ImageBrush's tiles are set to 10% by 10% of the output areaImageBrush's tiles are set to 10% by 10% of the output area
20.ImageBrush's tiles are set to 10% by 30% of the output areaImageBrush's tiles are set to 10% by 30% of the output area
21.ImageBrush's tiles are set to 50% by 50% of the output areaImageBrush's tiles are set to 50% by 50% of the output area
22.ImageBrush's tiles are set to 25 by 25 pixelsImageBrush's tiles are set to 25 by 25 pixels
23.ImageBrush's tiles are set to 25 by 50 pixelsImageBrush's tiles are set to 25 by 50 pixels
24.ImageBrush ViewportUnits=AbsoluteImageBrush ViewportUnits=Absolute
25.The ImageBrush has its Stretch property set to Uniform: the image is expanded as large as possibleThe ImageBrush has its Stretch property set to Uniform: the image is expanded as large as possible
26.ImageBrush has its Stretch property set to UniformToFill: image is expanded to completely fill the rectangle, but its aspect ratio is preservedImageBrush has its Stretch property set to UniformToFill: image is expanded to completely fill the rectangle, but its aspect ratio is preserved
27.ImageBrush has its Stretch property set to Fill: image is expanded to completely fill the rectangle.ImageBrush has its Stretch property set to Fill: image is expanded to completely fill the rectangle.
28.Text's Foreground = ImageBrush. The resulting text is filled with an imageText's Foreground = ImageBrush. The resulting text is filled with an image
29.Panel's Background property with an ImageBrushPanel's Background property with an ImageBrush
30.The ImageBrush's content is flipped vertically as it is tiledThe ImageBrush's content is flipped vertically as it is tiled
31.The ImageBrush's content is flipped horizontally and vertically as it is tiledThe ImageBrush's content is flipped horizontally and vertically as it is tiled
32.Fill rectangle with UniformToFill ImageBrushFill rectangle with UniformToFill ImageBrush
33.Fill Polygon with Left aligned Uniform ImageBrushFill Polygon with Left aligned Uniform ImageBrush
34.RotateTransform ImageBrush.RelativeTransformRotateTransform ImageBrush.RelativeTransform
35.RotateTransform ImageBrush.TransformRotateTransform ImageBrush.Transform
36.Specifying a Stretch and a TileModeSpecifying a Stretch and a TileMode
37.Specifying a Stretch and alignmentSpecifying a Stretch and alignment
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.