On 23 June 2012 13:18, Egon Willighagen <egon.willighagen@...> wrote:
> Hi Steffen,
> On Wed, Jun 20, 2012 at 11:35 AM, Steffen Neumann <sneumann@...> wrote:
>> Because the structures we show have quite different sizes,
>> they are scaled inside the 200x200 bitmap.
> Yes, that seems the default now. However, that is just a setting...
> that is, ScaleToFit is...
> These things are involved:
> - a scale factor converting world coordinates into screencoordinates
> - an optional option to make sure the molecule fits in the predefined image size
> The former should be fixed for you, and the latter disabled.
> Of course, you do not know in advance how large your image will be
> then... I am not sure we currently have an API for ask for that... but
> an important question indeed:
> How does not always have a bond with 80 pixels length, creating
> variable sized images with the same resolution?
> I do not have an answer for that at this moment.
>> Do the above wishlist items require changes
>> in CDK, rCDK or in both ? Or is that already somehow possible ?
> The CDK rendering stack does not need changes, but we may need an API
> to tell use what the 'screen size' is...
> Now, the rendering happens in two steps: first create rendering
> elements, and then draw these rendering elements onto a canvas (AWT,
> SWT, SVG). We should be able to get the "screen size" from the final
> rendering elements... we just need to figure out how :)
> Arvid, do you happen to have a quick (in 2 minutes) answer on this?
However, I am not sure if this is useful, if the rendering code is
used server side on a headless system...
> Dr E.L. Willighagen
> Postdoctoral Researcher
> Department of Bioinformatics - BiGCaT
> Maastricht University (http://www.bigcat.unimaas.nl/)
> Homepage: http://egonw.github.com/
> LinkedIn: http://se.linkedin.com/in/egonw
> Blog: http://chem-bla-ics.blogspot.com/
> PubList: http://www.citeulike.org/user/egonw/tag/papers
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> Cdk-devel mailing list