unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andy Moreton <andrewjmoreton@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Testing native image scaling
Date: Wed, 27 Mar 2019 19:06:47 +0000	[thread overview]
Message-ID: <vz1y350gmrc.fsf@gmail.com> (raw)
In-Reply-To: 831s2skvld.fsf@gnu.org

On Wed 27 Mar 2019, Eli Zaretskii wrote:

>> From: Andy Moreton <andrewjmoreton@gmail.com>
>> Date: Wed, 27 Mar 2019 18:35:09 +0000
>> 
>> > It seems to work, but maybe I don't know what and how to check.  Can
>> > you show what I should expect to see with and without the :scale
>> > attribute, in "emacs -Q"?
>>
>> I would expect a sliced image to be composed of a grid of tiled images
>> instead of a single image, but to have the same visual appearance as the
>> original image. The w32 code does not get this right.
>
> Did insert-sliced-image ever work on Windows, even before scaling was
> added?
>
>> Adding the ":scale 0.5" argument scales down the tiled array of images
>> correctly, but they still contain the same display artifacts as the
>> sliced image without scaling.
>
> Thanks, but I asked for the _correct_ image I need to expect, because
> I want something to compare to if/when I decide to try to fix this.

Sorry - I thought that was clear. The following forms should all produce
the same visual appearance in the buffer:

(insert-image (create-image "splash.png" nil nil :scale 0.5))

(insert-sliced-image (create-image "splash.png" nil nil :scale 0.5)
 nil nil 1 1)

(insert-sliced-image (create-image "splash.png" nil nil :scale 0.5)
 nil nil 3 5)

The sliced images are displayed as an array of tiled smaller images, but
should otherwise have the same appearance as the original (non-sliced)
image.

    AndyM




  reply	other threads:[~2019-03-27 19:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-19  9:31 Testing native image scaling Eli Zaretskii
2019-01-19 21:45 ` Alan Third
2019-01-20 16:05   ` Eli Zaretskii
2019-01-20 19:26     ` Alan Third
2019-01-20 19:41       ` Eli Zaretskii
2019-01-20 20:19         ` Alan Third
2019-03-27  2:35     ` YAMAMOTO Mitsuharu
2019-03-27 17:09       ` Eli Zaretskii
2019-03-27 18:35         ` Andy Moreton
2019-03-27 18:42           ` Eli Zaretskii
2019-03-27 19:06             ` Andy Moreton [this message]
2019-03-27 19:34               ` Andy Moreton
2019-03-28  2:26           ` YAMAMOTO Mitsuharu
2019-03-28 16:02             ` Eli Zaretskii
2019-03-28 18:06               ` Andy Moreton
2019-03-28 18:19                 ` Eli Zaretskii
2019-03-28 19:29                   ` Andy Moreton
2019-03-28 20:09                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vz1y350gmrc.fsf@gmail.com \
    --to=andrewjmoreton@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).