({{, (RefLink[ImageMargins, paclet:ref/ImageMargins])
is an option that specifies the absolute margins to leave around the image displayed for an object. }})

OpenersNotesSection(Spacer1)Details

Settings for (RefLink[ImageMargins, paclet:ref/ImageMargins]) are given in printer's points.

Margins specified by (RefLink[ImageMargins, paclet:ref/ImageMargins]) appear outside the region defined by (RefLink[ImageSize, paclet:ref/ImageSize]).

Possible settings for (RefLink[ImageMargins, paclet:ref/ImageMargins]) are:

(RefLink[ImageMargins, paclet:ref/ImageMargins]) can be used in functions such as (RefLink[Graphics, paclet:ref/Graphics]) and (RefLink[Export, paclet:ref/Export]), as well as for objects such as (RefLink[Cell, paclet:ref/Cell]), (RefLink[Button, paclet:ref/Button]), and (RefLink[Slider, paclet:ref/Slider]).

For (RefLink[Cell, paclet:ref/Cell]), (RefLink[ImageMargins, paclet:ref/ImageMargins]) represents space to be left inside whatever (RefLink[CellMargins, paclet:ref/CellMargins]) are specified for a particular cell.

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

No margins outside of (RefLink[ImageSize, paclet:ref/ImageSize]):

Framed[Graphics[Disk[]]]

Have 20-point margins on all sides:

Framed[Graphics[Disk[],ImageMargins->20]]

Leave different margins on each side:

Framed[Graphics[Disk[],ImageMargins->{{5,10},{20,30}}]]

OpenersExampleSection1(Spacer1)Properties & Relations  (2)

(RefLink[ImageMargins, paclet:ref/ImageMargins]) is defined outside of (RefLink[ImageSize, paclet:ref/ImageSize]):

Table[Framed[Graphics[{Pink,Disk[]},Frame->True,ImageMargins->k,ImageSize->70,FrameTicks->{{{-1,1},None},{{-1,1},None}}]],{k,{10,20,30}}]

(RefLink[ImagePadding, paclet:ref/ImagePadding]) is defined within (RefLink[ImageSize, paclet:ref/ImageSize]):

Table[Framed[Graphics[{Pink,Disk[]},Frame->True,ImagePadding->k,ImageSize->100,FrameTicks->{{{-1,1},None},{{-1,1},None}}]],{k,{10,20,30}}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ImageSize, paclet:ref/ImageSize])  ▪  (RefLink[FrameMargins, paclet:ref/FrameMargins])  ▪  (RefLink[CellMargins, paclet:ref/CellMargins])  ▪  (RefLink[PlotRangeClipping, paclet:ref/PlotRangeClipping])  ▪  (RefLink[PlotRangePadding, paclet:ref/PlotRangePadding])  ▪  (RefLink[ImagePadding, paclet:ref/ImagePadding])  ▪  (RefLink[PreserveImageOptions, paclet:ref/PreserveImageOptions])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Graphics Shape & Size, paclet:guide/GraphicsShapeAndSize])}, {▪(RefLinkPlain[Plotting and Image Regions, paclet:guide/PlottingAndImageRegions])}, {▪(RefLinkPlain[Controls Options, paclet:guide/ControlsOptions])}, {▪(RefLinkPlain[User Interface Structuring & Layout, paclet:guide/UserInterfaceStructuringAndLayout])}, {▪(RefLinkPlain[Options & Styling for Interactive Manipulation, paclet:guide/OptionsAndStylingForInteractiveManipulation])}})}})