alpha

Popover and tableview transparent

泪湿孤枕 提交于 2020-01-04 05:59:49
问题 In my Ipad application I use a popover but I'm not able to make it transparent. The popover has a tableview inside; my code is: UIViewController* popoverContent = [[UIViewController alloc] init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(600, 800, 100, 100)]; popoverView.backgroundColor = [UIColor greenColor]; popoverContent.view = zoneViewController.view; self.popoverController = [[UIPopoverController alloc] initWithContentViewController:popoverContent]; [self

JButton alpha background change with mouseover

你说的曾经没有我的故事 提交于 2020-01-03 20:04:13
问题 I want to have 2 buttons on my application with a transparent background and I "almost" done it. This is what I've done : public class PanelMenu extends JPanel{ //VARIABLES private JButton buttonFightSimulator, buttonMatchUp; //CONSTRUCTORS public PanelMenu () { this.setBounds(0,0,240,768); this.setLayout(new FlowLayout(0, 0, 0)); //BUTTON CREATION buttonFightSimulator = new JButton("FIGHT SIMULATOR"); buttonMatchUp = new JButton("MATCH UP"); buttonFightSimulator.setBackground(new Color(255

Is there any way to fix the horrendous toolbar icons after the Juno update?

我的未来我决定 提交于 2020-01-03 16:41:11
问题 At least on Windows 7, it looks like the title bar color may have been changed to blue. However, the title bar icons were designed only to be used on a light gray bar rather than using alpha transparency for antialiasing. Note the white highlights around the edge of the green circle "run" icon. The icons look horrendous, like we're in 1995. Is this how it appears on other Windows 7 user's installations as well? I noticed there's theming, and the closest I can find to something that works is

区间估计

浪子不回头ぞ 提交于 2020-01-03 03:31:10
求谁 σ 是 否 已 知 \sigma是否已知 σ 是 否 已 知 置信区间 置信区间 求 μ \mu μ σ 未 知 \sigma未知 σ 未 知 1 − α 1-\alpha 1 − α ( X ‾ − σ ( n ) Z α 2 , X ‾ + σ ( n ) Z α 2 ) (\overline X- \frac{\sigma}{\sqrt(n)}Z_{\frac{\alpha}{2}},\overline X+\frac{\sigma}{\sqrt(n)}Z_{\frac{\alpha}{2}}) ( X − ( ​ n ) σ ​ Z 2 α ​ ​ , X + ( ​ n ) σ ​ Z 2 α ​ ​ ) 求 μ \mu μ σ 已 知 \sigma已知 σ 已 知 1 − α 1-\alpha 1 − α ( X ‾ − σ ( n ) t α 2 ( n − 1 ) , X ‾ + σ ( n ) t α 2 ( n − 1 ) ) (\overline X- \frac{\sigma}{\sqrt(n)}t_{\frac{\alpha}{2}}(n-1),\overline X+\frac{\sigma}{\sqrt(n)}t_{\frac{\alpha}{2}}(n-1)) ( X − ( ​ n ) σ ​ t 2 α ​ ​ ( n − 1 ) , X

Setting an alpha channel when constructing an ImagickPixel

拈花ヽ惹草 提交于 2020-01-02 18:33:07
问题 I am new to using ImageMagick. I am using the latest imagick extension (3.1.0rc1) with PHP. However, the documentation for imagick seems to be somewhat sparse. I want to create an ImagickPixel object with an alpha channel. The documentation states that these are some valid color values to pass to the constructor: "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc . I know that it is possible to retrive the alpha value of an ImagickPixel using getColorValue(imagick::COLOR_ALPHA); .

SpatialPolygonsDataFrame doesn't plot properly when I make the color transparent

烈酒焚心 提交于 2020-01-02 10:16:15
问题 I've been struggling with this problem for a few days. I have a shapefile that contains zip code polygons. I'm trying to plot a certain portion of it with a transparent color ( alpha=0.7 ), but some of the polygons at the edge of the plot end up with no color. If alpha=1.0 , all polygons are fine. The shapefile is stored as a Large SpatialPolygonsDataFrame . # Code that you can use (Thanks jbaums) library(rgdal); download.file('http://www.naturalearthdata.com/http//www.naturalearthdata.com/do

Flatten the alpha channel in ggplot2

余生颓废 提交于 2020-01-02 02:52:08
问题 Some objects (functions) of ggplot2 support an alpha channel. http://docs.ggplot2.org/current/geom_point.html This is a nice feature, but transparent colours in pdf and png files are often source of diversified trouble. How can I use the alpha option and get flattened pdf output files? 回答1: I had ongoing problems with a large Latex doc created with knitr + ggplot that was perfectly readable on my mac but was unopenable for Windows users. After numerous attempts at optimizing and flattening

ggplot2: Thresholds for scale_alpha()

亡梦爱人 提交于 2020-01-01 10:36:12
问题 Is it possible to specify thresholds for color-scales? Look at this example: xy <- expand.grid(x=1:20,y=1:20) xyd <- data.frame(xy,z=runif(400),a=rowSums(xy)/40) g <- ggplot(xyd, aes(x=x, y=y, fill=z, alpha=a)) + geom_tile() + scale_alpha(range=c(0,1), limits=c(0.5,1)) g What I want is that Values of a below 0.5 get an alpha value of 0 so that the lower left half will be invisible. Obviously I could transform the original data but that would destroy the legend. 回答1: The threshold is working

ggplot2: Thresholds for scale_alpha()

白昼怎懂夜的黑 提交于 2020-01-01 10:31:46
问题 Is it possible to specify thresholds for color-scales? Look at this example: xy <- expand.grid(x=1:20,y=1:20) xyd <- data.frame(xy,z=runif(400),a=rowSums(xy)/40) g <- ggplot(xyd, aes(x=x, y=y, fill=z, alpha=a)) + geom_tile() + scale_alpha(range=c(0,1), limits=c(0.5,1)) g What I want is that Values of a below 0.5 get an alpha value of 0 so that the lower left half will be invisible. Obviously I could transform the original data but that would destroy the legend. 回答1: The threshold is working

UWP Composition - Apply opacity mask to top 30px of a ListView

爷,独闯天下 提交于 2020-01-01 09:26:07
问题 How can I apply an effect to a ListView where the top 30px graduate from fully transparent to fully opaque? The idea is that as you scroll down, the top items gradually fade away. I am building a UWP application where the design calls for the top 30px of a ListView to start at opacity 0 and transition to opacity 1. Conceptually I am imagining an Opacity Mask that would be applied to the top part of a SpriteVisual but I cannot work out how to achieve this. I am attempting this using the the