Searched refs:aspect (Results 1 - 4 of 4) sorted by relevance

/inkscape/src/display/
H A Dnr-filter-image.cpp196 // Check aspect ratio of image vs. viewport
198 double aspect = (double)image->height()/(double)image->width(); local
199 bool ratio = (feAspect < aspect);
250 feImageY -= ay * (feImageWidth * aspect - feImageHeight);
251 feImageHeight = feImageWidth * aspect;
254 feImageX -= ax * (feImageHeight / aspect - feImageWidth);
255 feImageWidth = feImageHeight / aspect;
263 feImageX += ax * (feImageWidth - feImageHeight / aspect );
264 feImageWidth = feImageHeight / aspect;
267 feImageY += ay * (feImageHeight - feImageWidth * aspect);
[all...]
/inkscape/src/2geom/
H A Drect.cpp99 Affine Rect::transformTo(Rect const &viewport, Aspect const &aspect) const
109 if (aspect.align == ALIGN_NONE) {
114 if (aspect.expansion == EXPANSION_MEET) {
123 offset *= Scale(align_factors(aspect.align));
H A Drect.h76 * Use this to create transformations that preserve aspect. */
157 * to the specified viewport. The aspect parameter specifies how to
158 * to the transformation (whether the aspect ratio of content
160 Affine transformTo(Rect const &viewport, Aspect const &aspect = Aspect()) const;
196 Affine transformTo(Rect const &viewport, Aspect const &aspect = Aspect()) {
199 ret = (*this)->transformTo(viewport, aspect);
/inkscape/src/ui/
H A Duxmanager.cpp155 gdouble aspect = static_cast<gdouble>(width) / static_cast<gdouble>(height); local
156 if (aspect > 1.65) {

Completed in 38 milliseconds