Questions tagged as 'hexadecimal'

3
answers

Is it possible to find darker / lighter tones from a hexadecimal?

Given any color in notation Hexadecimal , can you find the same in lighter or darker shades? example ... div { height: 50px; width: 150px; display: inline-block; text-align: center; line-height:...
asked by 18.12.2017 / 17:30
1
answer

Convert hexadecimal string to output readable in C

I would like to save a text in hexadecimal, and calling a function, the hexadecimal string is converted to a readable char string ie decoding hexadecimal, such as 0x6f0x69 to oi . I've tried the following: #include <stdlib.h...
asked by 04.09.2016 / 22:00
1
answer

Conversion from hex to int and toupper does not work

I need help with this code because I have created three functions But the hexToInt function is not converting correctly, it only works if the hex is an integer type 19 and not A or 1D. and the toUpper and toLower functions do not print a l...
asked by 16.06.2016 / 14:31
1
answer

How can I generate a hexadecimal code from another sequence of numbers?

I'm doing a code generator app, I need to generate a hexadecimal code from the code entered by the user and show this generated hexadecimal code. Could someone explain to me how I can get to this? I'm a beginner in this area.     
asked by 11.02.2015 / 19:57
1
answer

Working with Hexadecimal in Java

I saw an example code on the Java documentation site about bit that can be checked here . This class belongs to the example that is quoted in link above: class BitDemo { public static void main(String[] args) { int bitmask =...
asked by 09.06.2017 / 19:24
1
answer

How to convert color from 32 (24) bits to 16 bits?

So, guys, I'm having a problem, I'm creating an editing tool for a PS2 football game. And this game has two color "systems", which are: The "normal" RGB that is; A: 0 to 255, G: 0 to 255, B: 0 to 255. And the, or I think it's rsrs 5bitR...
asked by 04.04.2017 / 05:23
2
answers

Convert int to hex

What do I want to do, is it possible? convert the value variable to hex. private void button1_Click(object sender, EventArgs e) { int value = 255; byte[] buffer = new byte[5]; buffer[0] = 0xff; buffer[1] = value...
asked by 31.01.2017 / 16:26
1
answer

Doubt on how to use Shift in Java

Well, I have a question on how to use Shift Left in java. I have a String representing a value in hexadecimal. Except I need to pass this value to binary. For this I use an integer variable to turn this String into a decimal number: int primei...
asked by 27.03.2017 / 03:14
2
answers

How to change button color using RGB or Hexadecimal code?

I have a WinForms application and would like to use colors that are not in the default settings of the Color object, how could I do that? For example: How the code is: this.btnLogout.BackColor = System.Drawing.Color.Red; Example o...
asked by 08.04.2018 / 23:43
1
answer

How to convert hexadecimal to binary in an array in r?

I have an array with hexadecimal number, like this: [,1] [,2] [,3] [1,] "FA" "F8" "D0" [2,] "CE" "17" "6A" [3,] "0E" "D6" "22" If I try to convert to binary, with hex2bin(matriz) (biblioteca BMS) , I get: [1] 1 1 1 1 1 0 1 0...
asked by 06.08.2018 / 22:16