On Wed, 2004-11-24 at 16:02, Karl Ove Hufthammer wrote:
> Albert Cahalan <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
> 
> > (considering a 640x480 display)
> >
> > 200%  makes the stamp twice as wide
> > 2     means that the stamp file is 2x what it should be
> > 2/1   ? (didn't ask, but same as above would make sense)
> > 2:1   ? (didn't ask)
> 
> Perhaps just using a floating point number? E.g.:
> 
> 0.4
> 
> The stamp should now by default be scaled to .4 its original size
> when placed in a 640�480 window.

I support that, but it goes the other way. While I would
have done the direction you chose, our opinions are not
terribly important. We know about software development.

My wife, mostly a non-programmer, would use 2.5 for that.
(the reciprocal -- she views the problem as her having
made a stamp that is 2.5 times too large)

> (In higher resolutions we may want to change the scaling so the
> image stays physically the same size. E.g. for 1280�960 resolution
> a stamp with width 250 would by default get rendered with width
> 250*.4*1280/640 = 200 instead of 100.)

I did this, but as a function of the square root.
As the screen gets larger, you want two conflicting
things to happen:

1. you can put more objects on the screen
2. you get more-detailed objects

I split the difference. So if the object is 100x100 on a
500x300 canvas, it'll ideally be 141x141 on a 1000x600
canvas. The code will find the nearest integer ratio to
this, currently 3/2, resulting in a 150x150 stamp size.

> Here one can either use the old system of pushing to buttons, or
> move the (stepless) slider to set the size. (One annoyance I have
> with the current system is that the steps are too large,
> particulary when scaling up. This would fix this.)

There is a table of steps now, expressed as integer ratios.
You can add 10/7, 13/10, 8/5... whatever you like.

Don't hesitate to define truly insane sizes. They won't
be allowed. The code requires a surface area of 20 pixels,
and requires that neither dimension be over 2x the screen
size in that dimension.

> Unless someone objects, I'll add a feature request for this to the
> SF tracker.

It seems complicated. :-(


_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to