Hello,

What you are looking for is aspect_preference: SOURCE.
https://docs.enlightenment.org/stable/efl/edcref.html

Cedric

On Fri, Oct 23, 2015 at 10:31 AM, Jeff Hoogland <jeffhoogl...@gmail.com> wrote:
> 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?
>
> 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>
> ------------------------------------------------------------------------------
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Cedric BAIL

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

Reply via email to