English 中文(简体)
如何看待国际律师联合会意见的同前、字母和背景之间的关系?
原标题:What s the relationship among opaque, alpha, and backgroundColor of a UIView?

例如:

  1. I set UIView s alpha property as alpha = 0, 这是否意味着其<代码>opaque 财产应视为opaque=YES?

  2. How opaque ,alpha/code> and backgroundColor 影响业绩?

  3. ......

Similar Questions

最佳回答

页: 1 UIView。 违约时,该编码为nil,为tView提供了明确的背景说明。 给您的<条码>查询表提供背景资料,指定一个<条码>查询编码<>。

myView.backgroundColor = [UIColor greenColor];

也可将<条码>背井喷射/密码>作为图像:

myView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed@"myImage"]];

<代码>alpha>/code>是观点不透明。 您可使用这一称谓来打上,使其部分透明。 价值从0(完全看不见)到1(完全不见)。


<代码>opaque是一个显示View是否为不成像的保值。 如果您将<代码>alpha的数值定在小于1的数值上,则请将<代码>opaque至NO:

myView.opaque = NO;

页: 1 解释为什么和如何使用<代码>opaque 财产:

This property provides a hint to the drawing system as to how it should treat the view. If set to YES, the drawing system treats the view as fully opaque, which allows the drawing system to optimize some drawing operations and improve performance. If set to NO, the drawing system composites the view normally with other content. The default value of this property is YES.

An opaque view is expected to fill its bounds with entirely opaque content—that is, the content should have an alpha value of 1.0. If the view is opaque and either does not fill its bounds or contains wholly or partially transparent content, the results are unpredictable. You should always set the value of this property to NO if the view is fully or partially transparent.

问题回答

<>光>

not transparent

<>中>透明度:

见通过,而不是不透明。

http://www.hchr.org。

The inventors of RGBA model listed alpha after the Greece letter in the normar interpolation program αA + (1-α)B

To understand we can assume alpha is synonym for opaque in this graphic and image context.

<>Restrong>Relation between opaque,transparency and alpha:

opaque is directly propotional to alpha and inversely propotional to transparency i.e increase in alpha value results in increase in opaque and and decrease transparency

如果一种观点认为甲型六氯环己烷为1.0,那么它就完全不透明。

如果认为甲型六氯环己烷为0.0,那就完全透明。

rel between opaque,alpha and backgroundcolor:

he alpha will also affect the alpha of the backround color i.e. if the background color is 0.5 transparent and the alpha is also 0.5, this has the effect of making the background view s alpha 0.25 (0.5 * 0.5)

<>亮度>Opaque perfomance:

如果u set opaque as YES,那么,由于混杂不成 view子,或以直观或肤色出现,业绩就会增加。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...