beamer inserted in a transparent background image process (rpm)

A few days ago a friend asked notice method how to insert a transparent background image in beamer, was thinking it was not transparent png picture yet? These two days only make their own presentation discovery, whether or not png image, beamer is not and will not recognize. By trial and error, we draw the following experience to share with you.

beamer insertion method is to use a transparent background image pgf package, with a mask file completed. The mask file with the file to insert are identical, but there are places all colors are replaced with black. First, the preamble statement mask file (assuming to insert the image file name fig.jpg, file name corresponding mask-mask.jpg Fig):
\ pgfdeclaremask figmask} {} {figmask
then generate a file to insert
\ pgfdeclareimage [mask = figmask, width = \ textwidth] {fig-good} {fig}
after to insert a picture in the text file, simply using the command
\ pgfuseimage {fig-good}
can.

In this way, the key is how to generate mask file. I tried many times, but later found a simple method. It is to use (or similar tools such as photoshop) gimp, convert image files into black and white, save as a jpg file. Display color images in black and white graphic tool is the simplest one function, it should be easy to complete.

In gimp, simply select Image -> Mode -> Grayscale can be.

Photoshop, the image - mode - you can get the so-called gray mask (mask), very easy to use. Use the drawing board in black and white is not enough, the compiler can, but can not obtain the document. 


I made my presentation this way, insert my own logo. I wish you good luck!

Reproduced in: https: //www.cnblogs.com/parrynee/archive/2010/06/01/1748893.html

Guess you like

Origin blog.csdn.net/weixin_33883178/article/details/93447516