On Fri, 23 Oct 2015 12:31:18 -0500 Jeff Hoogland <jeffhoogl...@gmail.com> said:

> I've tried a bunch of those settings.
> 
> aspect 1 1;
> 
> Gives me me a square image when the aspect ratio of the png is closer to
> 16:9. Setting it to 16 9 also did not result in the desired effect.
> 
> Is there actual documentation somewhere on this?

if you grepped a bit more you'd notice its 1.0 1.0 - a float. it's width /
height. so you could do (16/9) (16/9) or 1.777 1.777. it's min and max aspect.
edcref documents this.

https://docs.enlightenment.org/efl/1.15.0/edcref.html

aspect  [min] [max]
        Normally width and height can be resized to any values independently.
The aspect property forces the width to height ratio to be kept between the
minimum and maximum set. For example, "1.0 1.0" will increase the width a pixel
for every pixel added to height. The default value is "0.0 0.0" disabling
aspect.

aspect_preference       [DIMENSION]
        Sets the scope of the "aspect" property to a given dimension.
Available options are BOTH, VERTICAL, HORIZONTAL, SOURCE and NONE

:) just encouraging you to use the docs to demystify samples :)

> On Fri, Oct 23, 2015 at 9:13 AM, Carsten Haitzler <ras...@rasterman.com>
> wrote:
> 
> > On Fri, 23 Oct 2015 00:05:58 -0500 Jeff Hoogland <jeffhoogl...@gmail.com>
> > said:
> >
> > > if I am displaying an edj object - what does my edc code need to look
> > like
> > > for the image to maintain its aspect ration as it's parent object
> > resizes?
> > > My current edc file is:
> > >
> > > group { name: "moksha/preview";
> > >    images.image: "preview.png" COMP;
> > >    parts {
> > >       part { name: "bg";
> > >          description { state: "default" 0.0;
> > >             image.normal: "preview.png";
> > >             fill.smooth: 1;
> > >          }
> > >       }
> > >    }
> > > }
> > >
> > > The result is pretty ugly as the window resizes:
> > > https://www.enlightenment.org/ss/e-5628466ebaa758.63279233.jpg
> > >
> > > How can I have the image that is contained in the edje file keep its
> > shape?
> > >
> > > Alternatively can I force an elementary object to have a certain aspect
> > > ratio?
> >
> > tried:
> >
> > grep -r aspect .
> >
> > in the default theme edc tree? :)
> >
> > > --
> > > ~Jeff Hoogland <http://jeffhoogland.com/>
> > > My Projects on GitHub <https://github.com/JeffHoogland>
> > >
> > ------------------------------------------------------------------------------
> > > _______________________________________________
> > > enlightenment-devel mailing list
> > > enlightenment-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > >
> >
> >
> > --
> > ------------- Codito, ergo sum - "I code, therefore I am" --------------
> > The Rasterman (Carsten Haitzler)    ras...@rasterman.com
> >
> >
> 
> 
> -- 
> ~Jeff Hoogland <http://jeffhoogland.com/>
> My Projects on GitHub <https://github.com/JeffHoogland>


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to