Questions tagged [alpha]

An alpha channel determines the transparency of an image or view. Lower values are more transparent, and higher values are more opaque

An alpha channel determines the transparency of an image or view. Lower values are more transparent, and higher values are more opaque

1779 questions
0
votes
1 answer

How to edit background image opacity in swift

I've got an image set as a background in : self.view.backgroundColor = UIColor(patternImage: UIImage(named: "background")!) The question is how to set it's opacity or "alpha". I have tried colorWithAlphaComponent(0.5) but it just made the image…
J.M
  • 15
  • 3
0
votes
1 answer

How do I make a PNG file display in Psychtoolbox with a transparent background?

I have two images I need to display concurrently on screen, using the Screen('DrawTexture') function. One image is a scene image, and second is an object, in which the background is transparent. I want to display the object on top of the scene…
treismanwolfe
  • 39
  • 1
  • 7
0
votes
1 answer

Manipulating the Alpha value of BufferedImage

In the code i'm setting the alpha value of a pixel to 100 for entire image and I want the Alpha value to be 100 while reading the image. But at the retrieving part it gives me 255(Default Value) . What is wrong ? and how to solve it ? Any Help would…
0
votes
0 answers

Android Shape Inverse Rectangle

Is there any xml that i can use to perform something like this ? I want to have an single ImageView where i show my picture. The picture is "fillparent" that it goes on the whole screen. But i only want to see the pink part normal and all outside…
ahdgfd
  • 325
  • 3
  • 12
0
votes
2 answers

How to remove all non-alphanumeric except dot or comma between 2 digits

I've searched a long time, but unfortunately, regex are really not for me... I just want to replace all the non-alphanumerics except dot or comma between 2 digits (or plus) by a space. Example : Welcome to RegExr v2.1 by gskinner.com, proudly…
Julien M
  • 11
  • 1
  • 3
0
votes
1 answer

Slick2d / LWJGL Adjusting alpha channel in OpenGL layer ( Java )

I apologize for some of my ignorance as I am fairly new to Slick2D and LWJGL. Essentially what I'm trying to do is make a scene look like night time by covering it with a GL_QUADS rectangle that is tinted blue and is translucent. That part is easy…
Keco
  • 69
  • 10
0
votes
1 answer

How can I publish my app in Alpha test mode only?

I've been searching online but I still haven't found the answer to this.. On the Google Play Developer Console, I uploaded an APK file to the 'Production' tab. I now want to test the app in 'Alpha' mode first. How can I test the app in 'Alpha'…
danger mouse
  • 1,457
  • 1
  • 18
  • 31
0
votes
1 answer

Detect if an image is transparent in GraphicsMagick

I am trying to check whether an image is actually transparent , not just check alpha channel. To demonstrate, lets create an image a.png that has an alpha channel but is fully opaque, and an image b.png that is the same except for one translucent…
user2650277
  • 6,289
  • 17
  • 63
  • 132
0
votes
1 answer

How to make MapView object transparent (alpha)?

All, I have a need to display information on a MapView object. No problems there. The issue is that there are times when the MapView object displays map details that visually compete with my overlay data. So, what I'd like to do is provide a way to…
richbl
  • 145
  • 9
0
votes
1 answer

How to preserve transparency when using png to make video with ffmpeg

I have a series of png's that have an alpha channel as a background. Each file is named like file_name.0001.png and so on, in subsequent order. I'd like to join these png's into a video with ffmpeg and maintain the transparency. I've tried a couple…
Ryan James
  • 165
  • 2
  • 12
0
votes
0 answers

kivy: change color without changing the alpha

In the following code the ellipse gets displayed with no transparency (alpha=1). Probably when self.color changes, the alpha is set to 1 (interestingly this doesn't happen if the color is set to (1,1,1) in the setup method). Is there a way to change…
davide
  • 11
  • 3
0
votes
1 answer

Game Maker: Studio - 2 draw-objects with diffrent alpha

//Object 1: (draw event) draw_text(x,y, global.Score); draw_set_alpha(0.5); //Object 2: (draw_event) draw_text(x,y, global.highscore); draw_set_alpha(1); The problem is, that the drawn objects (without sprites) sometimes have the alpha from the…
Raphael
  • 3
  • 2
0
votes
1 answer

Android Animation only works the first time

I am testing an app that I am in the process of making. When the application starts up, the splash screen is supposed to do a fade in/fade out animation into the login screen. When the application starts up FOR THE FIRST TIME, the animation works…
JulianMartinez23
  • 81
  • 1
  • 1
  • 6
0
votes
2 answers

Not able to use UISegmentedControl with three tabs and ContainerView

I made an iOS app with Xcode and Swift. I want to use UISegmentedControl with three tabs. With these tabs I can switch between three ContainerViews. Which numbers do I have to input in the alpha fields? 0, 1 and 2? Because when I set 2 it always…
user6571697
0
votes
0 answers

problems with alpha textures openGL + SDL2

I load a texture in a PNG with transparency in my program with this code : // Loading the image in a SDL_Surface SDL_Surface* imageSDL = IMG_Load(m_imageFile.c_str()); if (imageSDL == 0) { std::cout << "Error while loading texture \"" <<…