简体   繁体   English

如何将图像的背景设置为透明?

[英]How can I set the background to transparent for my image?

I got into a problem.我遇到了一个问题。 I downloaded a photo without a background PNG file and I used the image inside the button.我下载了一张没有背景 PNG 文件的照片,并使用了按钮内的图像。 And I want to make that photo transparent so I don't have that squares in the button.而且我想让那张照片透明,这样我就没有按钮中的方块。 So I want to set transparent background for the image.所以我想为图像设置透明背景。

Here's an image:这是一张图片:

在此处输入图像描述

  • First make your button background color transparent and add your image.首先使您的按钮背景颜色透明并添加您的图像。
  • After that Flatstyle = flat在那之后Flatstyle = flat

按钮设置

例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在C#中为窗体的背景设置透明图像? - How can I set a transparent image to my form's background in c#? 如何在不使用Bitmap.MakeTransparent()的情况下在C#中将图像设置为具有透明背景? - How can I set an image to have a transparent background in C# without using Bitmap.MakeTransparent()? 设置透明背景图片 - Set transparent background image 如何将JPEG图像转换为具有透明背景的PNG图像? - How can I convert a JPEG image to a PNG one with transparent background? 如何显示具有透明背景的 webp 格式的图像? - How can I display an image with format webp with transparent background? 如何设置透明位图图像?设置属性Graphics.clear(color.Transparent)时会显示黑色背景。) - How to Creating Transparent Bitmap Image?It gives black background when i set property Graphics.clear(color.Transparent ).) 如何保存带透明背景的gif? - How can I save a gif with a transparent background? 如何使用Mono在GTK#TextView中设置透明背景? - How can I set a transparent background in a GTK# TextView using Mono? 我该如何解决,这样我的透明gif在Xamarin形式的iOS中不会显示黑色背景? - How can I solve so my transparent gif does not show a black background in Xamarin forms iOS? 如何设置DataGrid的透明背景? - How to set a transparent background to a DataGrid?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM