alpha

Fatsest way to edit alpha of CGImage (or UIImage) with touch and then display?

I have two image views, one on top of the another, with two different images. As the user touches the image and moves his/her finger, the top image should become transparent along the touch points with a fixed radius. (Like the PhotoChop app). Currently I am doing it this way... For each touch. Get a copy of the image buffer from CGIm...

Action script 3 bitmap glitch, alpha fade in out

I have actually solved this problem but it was a weird one so I will post it and my solution. I had a movie clip with several children each of which had it's own alpha settings. It also had a bitmap child object with a masked movie clip sitting on top of it. I was fading in and out the parent movie clip and was getting some odd results...

Per-pixel per-component alpha blending in GDI

I have a 24-bit bitmaps with R, G, B color channels and a 24-bit bitmap with R, G, B alpha channels. I want to alpha blend the first bitmap to a HDC in GDI or RenderTarget in Direct2D with the alpha channels respectively. For example, suppose for one pixel, the bitmap color is (192, 192, 192), the HDC color is (0, 255, 255) and the alpha...

Removing WS_BORDER and WS_CAPTION from windows styles doesn't work

Hello, I created a small app in C# that removes border and caption from window, then it sets size to the user's resolution and centers it. It's a utility for me to use when I want to play games in windowed mode without being annoyed by the borders. Everything works fine with most games, but I tried to use it on a recently released game A...

Multi layer alpha image slideshow. AS3 right tool for the job?

Hi All, I need to build a portfolio for a photographer and am trying to figure out the best approach. I could use some suggestions here! REQS: 3 layers of images (groups) with a parallaxe like effect, meaning: trough gaps in top layer you see the second and through that the third layer. subsequent layers appear incrementally small...

Jlabel with alpha value

Hi: i have jLabel and i want to change its opacity (alpha value) each one second , i tried something like that but its not change each one second , jlable change its opacity only with last alpha value . Color color = jLabel1.getBackground(); int alpha = 255; long initTime = System.currentTimeMillis(); while(true){ ...

Drupal - Creating alphabetical pager using views

Hi, Thanks guys. This forum is really helpful. Now I have another question for you. I want to create a alphabetical pager for a view, so that when someone clicks on "A", they will see submissions whose title is starting with alphabet A. I have successfully created alpha pager by following http://tedserbinski.com/tags/drupal/creating-al...

Delphi: image with alpha blending capabilities

Is there some simple component that could display PNG 32-bit images and alpha-blend it to another image on mouse enter and on mouse leave? Or even just a simple image that can load 32-bit PNG and additionally would have Alpha parameter... I suppose I could use some skin library (alphacontrols?) or some graphics library, but for some sim...

[iPhone SDK] Edit alpha of cgimage on touch

Hello, I have two uiimageview, i need to have the imageview transparent under the touch point..(with a circle)...to be able to see the image under the first one.. Can you share me some code or examples? Thanks! ...

PNG alpha channel on UIButton (iPad)

Hi. I am relatively new to iPad programming in cocoa touch. I have a PNG with an alpha channel. I want to overlay it as a subview on a UIButton so that it looks as though the Button has a border around it. (Alpha channel is the centre of the image so the user must still see through it). I can't seem to find a way to display the alpha c...

Using Bitmap as alpha map of a cone

Hi, I'm wondering if i can use a bitmap to set alpha channel of a cone in wpf 3d : Black = > alpha = 0 % white => alpha = 100 % (more probably 80 % to see inside alpha difference ...) ...

PNG composition using GD and PHP

I am trying to take a rectangular png and add depth using GD by duplicating the background and moving it down 1 pixel and right 1 pixel. I am trying to preserve a transparent background as well. I am having a bunch of trouble with preserving the transparency. Any help would be greatly appreciated. Thanks! $obj = imagecreatefrom...

What version number should an unreleased project receive?

Note: I'm new to version numbering. Please excuse my ignorance. I have a project where an attempted major release (Version B) was abandoned then later re-attempted and release (Version C). Each version has major changes from the previous version that I wouldn't consider an minor update. Little to nothing of Version B made it into Versio...

PHP GD: need to find out an alpha quantity

Imagine this. I have a pixel of color (255,0,0) [red]. No someone painted on it with white color with * alpha. I know the background color, I know with what color it was painted over, I need to get the alpha of the painted over color. How? So far we have: $im = imagecreatefrompng('public/images/bg-tmp.png'); // we need to find a neare...

Drawing the alpha channel correctly in OpenGl.

After loading an image, I have the individual bytes for each channel loaded into an array of unsigned characters. It's passed to a function that projects it as a texture onto a quad. Everything seems to work properly other than the alpha channel, which shows up as the background color. I'm using OpenGL to draw the image. Would I benefit ...

Display PNG with alpha channel in C#

Is there a way to properly display an image with alpha channel (let's say PNG) in C# application? Thank you for any suggestions. UPDATE: OK, my question was a bit unprecise. I'd like to acquire real transparency of alpha channel - not filling with the parent's background color. In the image below we can see that the transparency is sup...

How to make font semi-transparent with Irrlicht?

I'm having trouble drawing a font with an alpha channel: gui::IGUIFont* font = device->getGUIEnvironment()->getBuiltInFont(); font->draw(L"C'mon, be transparent, PLEASE!!!", core::rect<s32>(130,10,300,50), video::SColor(127,255,255,255)); As you can see, the text should have an alpha value of 127... but it doesn...

How do I Disable a button with an image without reducing the alpha in obejective C?

After creating a round rect button, i disabled the button and the alpha of the button stays at 1 unless i reduced the alpha to 0.5 manually. But after inserting an image to the button, the alpha of the button would be set to 0.5 automatically even after setting the alpha to 1 after disabling the button. I would like to disable the butto...

Draw a texture in OpenGL while ignoring it's alpha channel.

I have a texture loaded into memory that is of RGBA format with various alpha values. The image is loaded as so: GLuint texture = 0; glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); self.texNum = texture; glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE...

android apply color to alpha animation

is there a way to apply a color to an alpha animation in android? I know how to use the <alpha> element, but i'd like to have the alpha apply a color as well as an alpha so i can hightlight a layout. is this possible? ...