added a Frame::scale_nonuniform method
This commit is contained in:
parent
a56b25b909
commit
5371fae21a
3 changed files with 20 additions and 2 deletions
|
|
@ -158,6 +158,10 @@ impl Frame {
|
|||
self.transform = self.transform.pre_scale(scale, scale);
|
||||
}
|
||||
|
||||
pub fn scale_nonuniform(&mut self, scale: Vector) {
|
||||
self.transform = self.transform.pre_scale(scale.x, scale.y);
|
||||
}
|
||||
|
||||
pub fn into_primitive(self) -> Primitive {
|
||||
Primitive::Clip {
|
||||
bounds: Rectangle::new(Point::ORIGIN, self.size),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue