Re: Непонятное поведение ImageBrush
От: Real_Asv Россия  
Дата: 07.08.08 17:16
Оценка:
Разобрался:

If you want to fix the number of horizontal and vertical tiles, but you also want to preserve the aspect ratio of the original image, you can set Stretch to Uniform (in which case there will be some blank space on the sides) or UniformToFill (which will truncate part of the image). But don't set Stretch to None, because that causes the image to be displayed in its metrical size. It's likely that the tile will be smaller than the unstretched image and thus will contain only a little part of that image.


Устанавливаем Stretch в Uniform, чтобы сохранить пропорции, устанавливаем ViewPort и ViewPortUnits и работает как режим повторения фоновой картинки так и еденичная фоновая картинка.
Control yourself.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.