RGBA stands for Red-Green-Blue-Alpha and specifies a color using four values which represent the amount of red, green, blue and alpha (opacity) in the color.
Questions tagged [rgba]
538 questions
-1
votes
1 answer
Application crashes when trying to present MFMailComposeViewController
I am trying to present MFMailComposeViewController in my application to send mail from my application. Whenever I call the method to present mail composer my application crashes with below crash log:
Assertion failure in -[UICGColor…

Ashutosh
- 2,215
- 14
- 27
-1
votes
1 answer
iPhone App - Display pixel data present in buffer on screen
I have the source code for a video decoder application written in C, which I'm now porting on iphone.
My problem is as follows:
I have RGBA pixel data for a frame in a buffer that I need to display on the screen. My buffer is of type unsigned char.…

Ereka
- 103
- 1
- 10
-1
votes
1 answer
android BitmapFactory.decodeByteArray() image type?
does anybody know what pixel type does BitmapFactory.decodeByteArray() returns?
basicly i'm using this snippet on the camera preview callback:
YuvImage img = new YuvImage(mLastFrame, ImageFormat.NV21, mPreviewSize.width, mPreviewSize.height,…

Vlad
- 735
- 2
- 10
- 19
-2
votes
1 answer
Converting RGBA C array into ARGB C array
I am trying to generate images in ARGB format. I can use GIMP to take a BMP/JPG/PNG and output an RGBA8888 C source file. This project is on a microcontroller/embedded system (32-bit, 1MB flash, 512kB SRAM). The internal LCD peripheral uses the ARGB…

tiger19tony72
- 3
- 2
-2
votes
1 answer
Why does the input (colorPicker) only support Hex?
I'm afraid I don't understand why there is no system-side option to select RGB, including transparencies? Am I making a mistake in using it, or did this feature not make it into Typo3 11 either? Thanks in advance?

Hertel84
- 1
-2
votes
1 answer
How to convert RGBA to RGB in Python, or how to get the right color code
Thanks in advance!
Below is the html, and I use driver.find_element_by_xpath("//h3[@class='title-part form_title']").value_of_css_property('color') to catch the color, but the result is rgba(63,64,64,1), but my expect result is #3f3f40.
Question1:…

Emon
- 51
- 1
- 2
- 4
-2
votes
2 answers
converting RGBA8888 to RGBA5551
I am writing an ImageEncoder that writes a TGA image. I have been able to successfully write the TGA file, but instead of ending up with [RRRRRGGGGGBBBBBA] I get [RGBBBBBA] here is the relevant code:
int lastRow = minY + height;
for (int row = minY;…

Jason Palmer
- 99
- 2
- 8
-3
votes
1 answer
How to calculate opacity from transparency?
We are calculating the opacity using the following formula
float alpha = 1 - transparency ; // transparency is a float value .
Now the user will be supplying transparency in int format ...
What changes should I make to get the opacity ?

sameer karjatkar
- 2,017
- 4
- 23
- 43
-3
votes
2 answers
I have a list with RGBA tuples and I want convert it to and image and save it
I have these:
pixels = [(255, 255, 255, 0), (255, 255, 255, 0), (255, 255, 255, 0), (255, 255, 255, 0), (255, 255, 255, 0), (204, 204, 204, 255), (204, 204, 204, 255), (119, 119, 119, 255), (119, 119, 119, 255), (204, 204, 204, 255), (204, 204, 204,…
-3
votes
3 answers
Using UIColor with CAShapeLayer
I'm passing an RGB color to shapeLayer.fillColor and shapeLayer.strokeColor, and my code is crashing. Here's what I tried:
let shapeLayer = CAShapeLayer()
shapeLayer.fillColor = (UIColor(red: 57, green: 65, blue: 101, alpha: 1) as!…

Naren Krish
- 259
- 2
- 14
-3
votes
1 answer
What is the index of the pixel in RGBA theory
Say you have an image that is 128 pixels wide, by 128 pixels high, and it is represented by a one-dimensional array of 32-Bit integers.
(Each integer contains the RGBA information for one pixel).
If the pixels are arranged in row-major order…

Rodrigo Ramos
- 337
- 2
- 12
-3
votes
4 answers
Apply css style to all the page height 100% with offCanvas Foundation 5
I try to apply some style css to my page, i work with Foundation 5
I want to apply a background color to all the page. As you can see on the jsfiddle, there is a white space between the top and the bottom.
Anyone know how to cover all the height…

mpgn
- 7,121
- 9
- 67
- 100
-4
votes
1 answer
How to quickly transform from RGB24 to BGRA on iOS?
which I use is vImageConvert_RGB888toARGB8888 and vImagePermuteChannels_ARGB8888. First change it from RGB24 to ARGB, because OPENGL ES doesn't support ARGB, so need to change ARGB to BGRA with vImagePermuteChannels_ARGB8888. But when the data need…

zhzhy
- 461
- 3
- 17