设置 Inkscape 工作区的背景颜色/图案以区分透明度

如何设定 Inkscape 背景区的外观,以分辨白色背景图像和透明背景图像?

许多其他的图片查看/编辑程序正是因为这个原因才使用了格子背景,但是我找不到任何类似于 Inkscape 的东西。

86962 次浏览

I've written a feature request for this on the Inkscape bug tracker. This is currently not possible, we'll see if it gets implemented in the future.

see https://bugs.launchpad.net/inkscape/+bug/1100755

EDIT Jul 2016: The feature has been added and should be included in the upcoming 0.92 release.

I use a big square, rectangle, oval, etc (whatever covers and hides the image completely), set the color to something ugly that obviously isn't part of the image design, then lower the shape to the bottom of the drawing so every other object is above it. Anything that is transparent will show the ugly color. When I am done editing, I delete the ugly-color shape that I created. Granted, it's a work-around, but it's relatively painless and easy to do.

A slight refinement to Carl's answer:

  1. Create a background layer. In it draw a large rectangle of your desired background colour.

  2. Lock the layer to avoid selecting the background rectangle object.

Check out the settings in the File|Document Properties menu.

In InkScape 0.48:

File > Document Properties > Page > General > Background

Move R, G, and B to 0. Adjust A (Alpha) to your preference (experiment to set to your liking).

Note that this approach will set the color you choose as the background for the saved/exported image.


In InkScape 0.92:

File > Document Properties > Page > General > Background > Checkerboard background

Since version 0.92 (January 2017) you can instead choose a checkered background. This won't effect the background of the saved image, but will override the background shown in InkScape.

On Windows, Ctrl + Shift + D, you'll see the Document properties windows in which you can change the document background color. [See screen campture] [enter image description here]1

As of Inkscape 0.92, you can elect to have a chessboard pattern in the background.

Go to document properties, and check this option:

enter image description here

I just came across this old post but though that I would add what I do to get new files to keep the features. I create a template .svg file and use that as the base for future drawings.