ImageScaled

ImageScaled[{x,y}]

gives the position of a graphical object in terms of coordinates scaled to run from 0 to 1 across the whole image region in each direction.

ImageScaled[{dx,dy},{x0,y0}]

gives a position obtained by starting at ordinary coordinates {x0,y0}, then moving by an imagescaled offset {dx,dy}.

Details

  • ImageScaled can be used to specify scaled coordinates in any two-dimensional graphics primitive.
  • You can use ImageScaled to represent objects that occupy a fixed region in the image associated with a graphic.
  • The image region used to define ImageScaled includes only the region in which the graphic can actually be drawn. It does not include empty space arising from mismatches in shape between ImageSize and AspectRatio, or defined by ImageMargins.

Examples

open allclose all

Basic Examples  (2)

Positions of objects by fractions of the whole image:

In[1]:=
Click for copyable input
Out[1]=

Radii by fractions of the whole image:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Applications  (1)

Properties & Relations  (4)

Possible Issues  (3)

See Also

Scaled  PlotRange  PlotRegion  Offset  ImageSize

Introduced in 2007
(6.0)