Re: [artworks] Convert jpeg to Sprite for ButtonBar

  • From: Richard Ashbery <riscos@xxxxxxxxxxxxx>
  • To: artworks@xxxxxxxxxxxxx
  • Date: Mon, 09 Aug 2010 17:14:30 +0100

In article <72ce044451.martin@xxxxxxxxxxxxxxxxxxx>, Martin Wuerthner
<lists@xxxxxxxxxxxxxxx> wrote:
> In message <5143b7591criscos@xxxxxxxxxxxxx> Richard Ashbery
>           <riscos@xxxxxxxxxxxxx> wrote:

> > I've been using ArtWorks (V2.X.00) to create some button Sprites
> > for David Lewellyn Jones Button bar (V1.62) program. Starting
> > with a full size jpeg (600x600 for example) I use the bitmap
> > export option to resize to a Width of 20 pixels, Height 20 pixels
> > and then convert and save as a Sprite. When I load the image in
> > Paint I get a thin horizontal white band at the top and a thin
> > vertical band on the right-hand-side.

> > This is not what I would expect - any ideas why?

> I suspect this is down to rounding errors in the OS JPEG rendering
> routines. You can see the same effect when scaling down the view
> accordingly, or when scaling down the JPEG to exactly 20 pixels
> width and then looking at it at 100% scaling. In both cases the
> rendering is out by one or two pixels with respect to a reference
> path object.

I've just done some more re-scaling tests from 90% to 10% and sure
enough all produce the rounding error. Only 50% scales perfectly.
Something to bare in mind. 

Thanks Martin.

------------------------------------------------------------
    To change, suspend or cancel your subscription go to
           //www.freelists.org/list/artworks
------------------------------------------------------------

Other related posts: