W3C home > Mailing lists > Public > public-media-fragment@w3.org > April 2011

Re: Rounding with #xywh=percent:25,25,50,50

From: Jack Jansen <Jack.Jansen@cwi.nl>
Date: Sat, 9 Apr 2011 01:11:25 +0200
Cc: public-media-fragment@w3.org
Message-Id: <2C7CB3A4-121C-4639-8CBA-3A9F5AA61ADB@cwi.nl>
To: Philip Jägenstedt <philipj@opera.com>

On  6-Apr-2011, at 18:12 , Philip Jägenstedt wrote:
> 
> The formula for always enclosing the region would be:
> 
> x' = floor(x)
> y' = floor(y)
> w' = ceil(x+w) - floor(x)
> h' = ceil(y+h) - floor(y)

Absolutely right. I was confusing xyxy-style rectangles.

I think what you suggest is what we should go with,
Received on Friday, 8 April 2011 23:12:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 September 2011 12:13:42 GMT