how to convert all the pixel value to hexadecimal and from hexadecimal to binary in vb.net
actually i need in vb.net that category is not available so that i selected as java.first i need to store the pixels in 2d array .from that i need to convert all the pixel values into hexadecimal how it can be done in for loop and to convert that hex to bin for all the pixels please`Dim xmax As Integer
Dim ymax As Integer
Dim x As Integer
Dim y As Integer
Dim bm As New Bitmap(TextBox1.Text)
h = bm.Height
w = bm.Width
Dim g As Graphics = Me.CreateGraphics()
Dim bm1 As New Bitmap(bm)
xmax = bm.Width - 1
ymax = bm.Height - 1
Dim bmcolor As Color
For y = 0 To ymax
For x = 0 To xmax
bmcolor = bm.GetPixel(x, y)
bm1.SetPixel(x, y, Color.FromArgb(bmcolor.R, bmcolor.G, bmcolor.B))
Next x
Next y
Dim g1 As String = Hex(bmcolor.G)
Dim b1 As String = Hex(bmcolor.B)
Dim r1 As String = Hex(bmcolor.R)
Dim col5 As String
col5 = r1 & g1 & b1
MsgBox(col5)
PictureBox2.Image = bm
bin = Convert.ToString(Convert.ToInt32(col5, 16), 2)
MsgBox(bin)` i need coding immediately help me
View Answers
Ads
Related Tutorials/Questions & Answers:
Convert Binary to Hexadecimal
Convert Binary to
Hexadecimal
In this section, you will learn to
convert binary data...():
This is the method that
takes an integer type
value and converts it into
binary to
hexadecimal
Advertisements
Convert Hexadecimal into Binary and Long
Convert Hexadecimal into
Binary and Long
 ... the
hexadecimal
data into the
binary and long format. The java.lang
package provides the functionality to
convert a
hexadecimal to
binary and long
type data.
Code
Convert Byte to Hexadecimal
Convert Byte to
Hexadecimal
In this section, We are going to
convert a byte
value into
a
hexadecimal number. The package java.lang provides the functionality
Convert Hexadecimal number into Integer
to
convert hexadecimal
data into integer. The java.lang
package provides the functionally to
convert the
hexadecimal data into an
integer type data.
Code... the
hexadecimal value:!
24
Integer:=36
C:\corejava>
Convert Decimal to Hexadecimal
Convert Decimal to
Hexadecimal
 ... into
hexadecimal. The java.lang package provides the
functionality to
convert a decimal... it into
hexadecimal data.
toHexString():
This method takes a decimal
value
Convert Hexadecimal to Decimal
Convert Hexadecimal to Decimal
In this section, you will learn to change
hexadecimal number... by the second argument. Here the
second argument is 16 to
convert a
hexadecimal
decimal to hexadecimal
decimal to hexadecimal using array in java
convert decimal to
hexadecimal.
Hi,
Please see the example
Convert Decimal to
Hexadecimal.
Thanks
Hexadecimal numbers multiplication
Hexadecimal numbers multiplication Sir,
I have to multiply 128 bit
hexadecimal numbers. Do u have any logic for this??
The numbers are like
ab7564fa342b5412c34d9e67ab341b58
Convert Hexa To Char
;
In this example, you will learn
how to
convert
hexadecimal to char number... string. This program takes a
hexadecimal number at console and
convert... parameter is 16 to
convert a
hexadecimal into
a decimal number. After that takes
Java Convert Octal to Binary
Java
Convert Octal to
Binary
In this tutorial, you will learn
how to
convert octal to
binary.
Java has provide different ways to change the number system of different
numbers. You can
convert and decimal to octal, decimal to
binary
How to convert binary to decimal in Java?
How to
convert binary to decimal in Java program?
In this section we are going to
convert a
binary
number to it decimal representation... the
function
to
convert the integer data into the
binary to decimal.
Here is the code
Convert Binary to Decimal
Convert Binary to Decimal
In this section, you will learn
how to convert a
binary...
to
convert the integer data into the
binary to decimal.
Code Description
Convert Text to Binary
Convert Text to
Binary
In this section, we will learn
how to
convert Text to
Binary.
The following program provides you the functionality to
convert Text to
Binary
Convert Text to Binary
Convert Text to
Binary
In this section, we will learn
how to
convert Text to
Binary.
The following program provides you the functionality to
convert Text
Convert a String to Hexa
Convert a String to Hexa
In the example given below, you will learn
how to
convert String to hexadecimal number. This example takes a user input
string and
convert
Convert Decimal into Binary
takes a decimal number
from console and it converts
it into
binary format... the decimal
value:
123
Binary: 1111011
C:\corejava>...
Convert Decimal into Binary
 
How to save and get value from JSP
How to save and get
value from JSP Employee Name Time... 324 2012-12-12
save
i want to save dis
value jsp to action ...
how can i get
all value ..and store..
how can its values goes
How to read value from xml using java?
How to read
value from xml using java? Hi
All, I want to read
value from following xml using java.. In <Line>,data is in format of key and
value pair.. i want to read only values..could u plz help me in this?Thanks
how to retrieve a checkbox value(retrieve from DB)
how to retrieve a checkbox
value(retrieve
from DB) I facing a problem with checkbox
value that already exists inside the database. so
how can I retrieve those
value from another database table? the table subject and service
Convert Number to Binary
Convert Number to
Binary
In this section, you will learn to
convert a number
to a
binary (0,1...
binary.
Code Description:
This program takes a decimal number at the console
How to add value from sql server in dropdownlist
How to add
value from sql server in dropdownlist I have created a hospital management project using jsp servlet, where one form name is patient... id
from other table like out patient, and this id will be stored dynamically
How to pass the value from controller to jsp page ?
How to pass the
value from controller to jsp page ? HI
I need to pass the
value from controller to jsp.
I use the way like this
Controller
request.setAttribute("msg", "Successfully Login");
In jsp
${msg}
and then i