PreparedImages method test

All images are prepared with a white background so it's OK that you don't see transparency.

Method="PreparedImages" Image-Mode="CornersAndEdges" Image-Top="rc-images/test-top.png" Image-TopRight="rc-images/test-topright.png" Image-Right="rc-images/test-right.png" Image-Bottom="rc-images/test-bottom.png" Image-BottomLeft="rc-images/test-bottomleft.png" Image-Left="rc-images/test-left.png" Image-TopLeft="rc-images/test-topleft.png"
All paths are manually specified. Right bottom is intentionally omitted - no exception is thrown but the corner is not painted.
 
Method="PreparedImages" Image-Mode="CornersAndEdges" Image-Directory="rc-images" Image-Top="test-top.png" Image-TopRight="test-topright.png" Image-BottomRight="test-bottomright.png" Image-Right="test-right.png" Image-Bottom="test-bottom.png" Image-BottomLeft="test-bottomleft.png" Image-Left="test-left.png" Image-TopLeft="test-topleft.png"
Image-Directory specified so all images are seeked relatively to this path.
 
Method="PreparedImages" Image-Mode="CornersAndEdges" Image-Directory="rc-images" Image-FilePrefix="test-"
Images are searched automatically.
 
Method="PreparedImages" Image-Mode="Corners" Image-Directory="rc-images" Image-FilePrefix="corners-" BackColor="PeachPuff" BorderColor="IndianRed" BorderWidth="3px" Padding="10px"
The Corners mode. Border settings should visually match prepared images design. Padding should work. Text cannot be placed between rounded corners images, even with negative Padding.
Method="PreparedImages" Image-Mode="TopMiddleBottom" Image-Directory="rc-images" Image-FilePrefix="big-" Padding="5px 10px"
The TopMiddleBottom mode. When the Width is not set, it is automatically computed from image width. Padding must be set manually because in this mode, it cannot be computed automatically (vertical padding could be computed but it would be confusing when vertical padding was there and horizontal one not).

Back to tests homepage