You need the standard package graphicx

to include the image. Loaded xcolor

would also be a good idea.

Here some examples which use a transparent test PNG I got from http://entropymine.com/jason/testbed/pngtrans/rgba16.png

.

写道

\documentclass{article}

\usepackage{xcolor}

\usepackage{graphicx}

\begin{document}

\framebox{\includegraphics{rgba16.png}}

\colorbox{red}{\includegraphics{rgba16.png}}

\colorbox{white}{\includegraphics{rgba16.png}}

\colorbox{yellow}{\includegraphics{rgba16.png}}

\end{document}

The first image shown is the original transparent PNG. As you can see the other work fine with some background color.

For advanced effects like patterns and shadings I would recommend you PGF/TikZ

(i.e. the tikz

package).

写道

\documentclass{article}

\usepackage{tikz}

\usetikzlibrary{patterns}

\begin{document}

\begin{tikzpicture}

\node [pattern=north east lines,inner sep=10pt] {\includegraphics{rgba16.png}};

\end{tikzpicture}

\begin{tikzpicture}

\node [shade,left color=yellow,right color=blue,inner sep=10pt] {\includegraphics{rgba16.png}};

\end{tikzpicture}

\end{document}

分享到:

2012-06-11 10:29

浏览 1488

评论

beamer插入图片_beamer中暗背景插入图片相关推荐

  1. html绘制word柱状图,如何在word绘制插入柱形图_excel中如何插入柱形图 - 学无忧

    在文档制作excel表格的时候,为了让数据更能直观的展示进行对比和分析,我们需要一些图表来进行展示.而今天学无忧就教大家如何在excel中插入柱形图,并且同样在word绘制插入柱形图的方法.相对来说, ...

  2. vue 直接访问静态图片_vue中本地静态图片路径写法

    这篇文章给大家介绍了vue中本地静态图片路径写法及Vue.js中引用图片路径的方式,需要的朋友参考下吧 这里写图片描述 需求:如何components里面的index.vue怎样能把assets里面的 ...

  3. php如何随机显示图片,php中随机显示图片的函数代码_php

    /********************************************** * Filename : img.php * Author : freemouse http://www ...

  4. python scrapy框架 抓取的图片路径打不开图片_Python中Scrapy爬虫图片处理详解

    下载图片 下载图片有两种方式,一种是通过 Requests 模块发送 get 请求下载,另一种是使用 Scrapy 的 ImagesPipeline 图片管道类,这里主要讲后者. 安装 Scrapy ...

  5. php转为图片,php中base64转换为图片的方法

    php中base64转换为图片的方法 发布时间:2020-08-31 09:56:18 来源:亿速云 阅读:100 作者:小新 小编给大家分享一下php中base64转换为图片的方法,相信大部分人都还 ...

  6. table vue 背景图片_table中background背景图片自动拉伸

    解决android:background背景图片被拉伸问题 ImageView中XML属性src和background的区别: background会根据ImageView组件给定的长宽进行拉伸,而s ...

  7. 【Android Gradle 插件】自定义 Gradle 插件优化图片 ① ( Android 中的 WebP 图片格式使用 | WebP 格式转换 | WebP 参考文档 )

    文章目录 一.Android 中的 WebP 图片格式使用 二.WebP 格式转换 三.WebP 参考文档 Android Plugin DSL Reference 参考文档 : Android St ...

  8. php mysql 插入图片_mysql中怎样插入图片

    mysql中插入图片的方法:首先要在数据库中建表:然后装载JDBC驱动,建立连接:最后创建Statement接口类,来执行SQL语句即可. mysql中插入图片的方法: 1.首先,先要在数据库中建表. ...

  9. MySQL表如何导入图片_mysql中怎样插入图片

    mysql中插入图片的方法:首先要在数据库中建表:然后装载JDBC驱动,建立连接:最后创建Statement接口类,来执行SQL语句即可. mysql中插入图片的方法: 1.首先,先要在数据库中建表. ...

最新文章

  1. UTRAN 的用户面和控制面
  2. html重复标题,在HTML中重复表标题
  3. SHT30温湿度传感器驱动设计分析及代码实现
  4. 数据库程序接口——JDBC——功能第五篇——批量处理
  5. Intel® Nehalem/Westmere架构/微架构/流水线 (8) - 重复字符串指令增强
  6. 新建linux服务器初始化操作
  7. Android 利用缓存机制实现文件下载
  8. LeetCode-20.有效的括号(栈的使用+map的count)
  9. Linux虚拟文件系统(概述)
  10. 前后端分离,nginx解决跨域问题
  11. USB转串口驱动(支持各平台)
  12. chua系统matlab代码
  13. 镭速传输攻克视频素材传输顽疾,大幅提升业务效率
  14. 全国计算机考试进制计算器吗,进制数换算器(十六进制计算器在线)
  15. 《欲望都市》要出电影版啦!
  16. 精读《图解密码技术》--第四章 分组密码的模式
  17. CycleGAN:Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks
  18. Boris FX Continuum Complete 2019(AE基础特效插件)v12.0.3.4169中文版
  19. 【转】Windows系统中简单卷、带区卷、跨区卷、镜像卷的测试对比
  20. 阿里服务器部署PPTP

热门文章

  1. python文件的编译
  2. Ubuntu 16.04 利用qemu模拟ARM开发板
  3. golang println与printf区别
  4. VC6如何使用VS2005中的CImage类功能
  5. 线程的CloseHandle和WaitForSingleObject
  6. linux内核内存管理的三个阶段分析
  7. android开发读书笔记,android开发权威指南读书笔记
  8. 全国信息化计算机应用技术水平教育考试,全国信息化计算机应用技术水平教育考试试卷.doc...
  9. linux mint 下载迅雷安装包,linux mint 最新版本下载地址
  10. java连接字符串_Java字符串连接运算符