Все вопросы: [transparency]

165 вопросов

11
голосов
1ответов
20520 просмотров

How to read pixel color in a java BufferedImage with transparency

I am reading pixel color in a BufferedImage as follows: ..... InputStream is = new BufferedInputStream(conn.getInputStream()); BufferedImage image = ImageIO.read(is); int color = image.getRGB(x, y); int red = (colour & 0x00ff0000) >> 16; int green = (colour & 0x0000ff00) >&g...

1
голосов
2ответов
1344 просмотров

opacity in ie using absolutely positioned divs not working

I've been banging my head against the wall for a few hours how trying to sort this out. I'm trying to position one div on top of another for the purpose of fading one in on top of the other. The divs will have an image and some other html in them. I cannot get opacity to work in ie8. I've simplif...

1
голосов
2ответов
2435 просмотров

Clearing the alpha channel of an NSImage

It can be done by mallocing a temporary bitmap with 32bits per pixel and then clearing the alpha component with a for loop and and finally turn it back into a NSImage again. I suspect is can be done in a simpler way using a clever combination of NSColor and NSCompositingOperation. Or perhaps th...

5
голосов
2ответов
8968 просмотров

How can I make a form transparent according to a PNG image?

I have a PNG image that uses transparency (it is actually a circle with gradient effect from black in the middle, to transparent on the margins). I am putting this on a form using TImage. I set TForm1.Color and the TForm1.TransparentColorValue to the same value and TForm1.TransparentColor:=true. ...

7
голосов
4ответов
4760 просмотров

How can I make a part of the form partially transparent in C#?

I want to make a part of a form semi-transparent, with additional text on that part which is not transparent. How can I accomplish this in C#?

6
голосов
3ответов
10353 просмотров

Qt: QImage always saves transparent color as black

How do I save a file with transparency to a JPEG file without Qt making the transparent color black? I know JPEG doesn't support alpha, and the black is probably just a default "0" value for alpha, but black is a horrible default color. It seems like this should be a simple operation, but all of...

12
голосов
7ответов
16174 просмотров

How do I make my form transparent, but what I draw on it not?

I tried setting the opacity of my form to 50%, and then drawing a string on it. It seems that the string I draw on it also has an opacity of 50%. How would I draw a non transparent string , but let the form background show through 50%? Would also be willing to do this in WPF if it is possible, b...

3
голосов
4ответов
3964 просмотров

C# DataGridView - Transparent Image

I am attempting to populate a DataGridView cell with an image. The image is a 32bit png with Alpha Transparency. I can get this image to display properly in a picturebox or a Listview but in the DataGridView the image loses quality. I have tried setting various parts of the control to transpare...

1
голосов
6ответов
3467 просмотров

transparent gif help

I have a website that I need to make some images that are colored, with a 45% opacity, so you can see through to the background. My problem is that for obvious reasons I cannot use a .png. I have used a gif. When I get it on the site, the opacity has read as far as the color, but you cannot see t...

3
голосов
2ответов
4574 просмотров

GDI+, using DrawImage to draw a transperancy mask of the source image

Is it possible to draw a transperancy mask of an image (that is, paint all visible pixels with a constant color) using Graphics::DrawImage? I am not looking for manually scanning the image pixel-by-pixel and creating a seperate mask image, I wonder if it's possible to draw one directly from the o...

3
голосов
1ответов
477 просмотров

Temporarily see-through wpf application - à la Visual Studio Ctrl for tooltips

Context: I'm working on a WPF application where the user often has to transcribe bits of data manually from other programs. Not having dual monitors, this involves a lot of Alt-tabbing. I figured that it would be quite nice to have the same functionality as in Visual Studio for tooltips - where ...

0
голосов
2ответов
1297 просмотров

ie7 Png transparency image

PNG image transparency does not work on IE7. It look like this on IE7: http://websitehelp.techgrowthglobal.com/bc_developers/index.html In the column right portion of the body there is a curved image on top-a1 In the center it was the repeat png background and at the bottom was a curve also a...

0
голосов
3ответов
388 просмотров

How do I float a control over the top of an image (using the background of image)

I have a logo image across the entire top of my website page. The logo itself only takes up about one third of the left hand side. The right two thirds of this bar is plain and dark blue in color. I have several links and the user name displayed on the right side and would like to float those ...

2
голосов
2ответов
3286 просмотров

semi-transparent image on transparent form

i need to have semi-transparent image (by using alpha blending) drawn on fully transparent form - it means that image will be drawn over form transparent content. Currently image is always drawn over window background color even if window itself is transparent. This is current state, thanks for...

0
голосов
1ответов
1719 просмотров

transparent icons on toolbar draw ugly borders

I'm trying to set transparent icons in a QAction, which is then added to a Menu and a toolbar. I'm styling the application with a style sheet. The icon transparency works, but the icons are being drawn on the toolbar with what looks like a 1px black border on the left and top edges of the icons. ...

3
голосов
3ответов
4102 просмотров

Transparent color works on the simulator but becomes black on the iPhone

I am trying to draw an image that has some transparent regions. I load the image using image = [UIImage imageNamed:@"testimage.png"]; and draw it using [image drawAtPoint:CGPointMake(0,0)]; The UIView on which I draw the image is not opaque (and it has a transparent background color). Th...

2
голосов
1ответов
3267 просмотров

GDI RoundRect on Compact Framework: make rounded rectangle's outside transparent

I'm using the RoundRect GDI function to draw a rounded rectangle following this example: .NET CF Custom Control: RoundedGroupBox Because all controls are square, it also draw the corners outside of the rounded rectangle. How can I make this space left outside the rectangle transparent? The OnPa...

2
голосов
1ответов
4659 просмотров

Windows form with a transparent background that cannot be clicked through

Using c# / windows forms. Trying to make a form's background transparent, without it losing its ability to receive clicks. this.Opacity makes the whole form transparent (not just the background BackColor = Color.Red; TransparencyKey = BackColor; makes the background of the form transparent...

0
голосов
1ответов
242 просмотров

Enabling transparency on a texture in O3D

I have a texture of a set of lungs and the heart that I am applying to a series of triangles. The texture is a .png file and has a transparent background but when I apply it in O3D it shows up with a white background. How would I get this to show up as transparent?

0
голосов
2ответов
2298 просмотров

Transparency/Blending issues with OpenGL ES/iPhone

I have a simple 16x16 particle that goes from being opaque to transparent. Unfortunately is appears different in my iPhone port and I can't see where the differences in the code are. Most of the code is essentially the same. I've uploaded an image to here to show the problem The particle on the...

10
голосов
3ответов
6632 просмотров

iPhone: Layering a transparent openGL view on top of a UIView?

I am working on iPhone app and I have an openGL view rendering on top of a regular UIView. It's working, but I can't seem to get the openGL view to have a transparent background that shows the UIView underneath. Instead, I get a big black box. I have tried setting the background color to UICol...

8
голосов
2ответов
29879 просмотров

Generate transparent PNG c#

I have the function below to generate a sample logo. What I want to do is to return a transparent png or gif instead of a white background. How can I do that? private Bitmap CreateLogo(string subdomain) { Bitmap objBmpImage = new Bitmap(1, 1); int intWidth = 0; int intHeight = 0; ...

1
голосов
1ответов
1554 просмотров

How can I optimize drawing of multiple fullscreen transparent iPhone OpenGL ES layers?

I'm trying to optimize my iPhone OpenGL ES app. This is based on the GLSprite and GLPaint sample apps. I've factored out EAGLView into a base class, and I'm subclassing it in 3 different OpenGL views to make 3 transparent layers. The display parent for the 3 EAGLViews is a UIView, and that UIV...

0
голосов
1ответов
3133 просмотров

Special-Draw transparent picture

got a PictureBox (called i_MC) and i draw a simple image (m_ImgMCN) on it doing: Call i_MC.PaintPicture(m_ImgMCN, 0, 0, i_MC.width, i_MC.height) now i would like to put a transparent image on this picture, on a specific position. i found a sample code, which does the job quite well with one pr...

17
голосов
3ответов
12223 просмотров

Alpha transparent PNGs not displaying correctly in Mobile Safari

I'm using some semi-transparent PNGs as background-images on various websites. These are usually something like a 1x1 image with a 30-percent opaque white layer. I've noticed that Mobile Safari does not display them correctly, giving them a darker/grayish tint. Is this a MobileSafari bug (I cou...

0
голосов
1ответов
280 просмотров

Transparency in WPF

When I want a window to be transparent I have to set AllowsTransparency to True. When I set this the outer boarder(You know the close and minimize button and all) disappear also. Oh, I am using Blend 3 to do this(Just got it, it's very nice).

2
голосов
2ответов
2226 просмотров

Windows application very slow when using transparency

I am writing a windows application with C# in visual studio .net 2005. In the form , there are some control with transparent Background; the form opens maximised and with full screen background. The application runs very slow with high CPU usage. Why is this?

12
голосов
2ответов
5913 просмотров

Displaying translucent / irregular-shaped windows with Qt

Is it possible to display translucent and/or irregular-shaped windows with Qt? (I'm assuming it ultimately depends on the capabilities of the underlying GUI system, but let's assume at least Windows XP / Mac OS X) If so, how does one accomplish this?

5
голосов
5ответов
26764 просмотров

Set datagrid view background to transparent

I tried to set the background color of a data grid view to be "transparent" from properties but it it said "not a valid property". How can I do it?

0
голосов
3ответов
1882 просмотров

How to put a transparent color on a form?

I have a form with an image as the background. Now I need to put several transparent dark color areas in several areas off the form. I need not to hide the background. How can I do this?