how to convert all the pixel value to hexadecimal and from hexadecimal to binary in vb.net

Ads
 

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:
how to convert all the pixel value to hexadecimal and from hexadecimal to binary in vb.net
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... that i need to convert all the pixel values into hexadecimal how it can be done
decimal to hexadecimal
decimal to hexadecimal  using array in java convert decimal to hexadecimal.   Hi, Please see the example Convert Decimal to Hexadecimal. Thanks
Advertisements
conversion from decimal to hexadecimal and vice versa
conversion from decimal to hexadecimal and vice versa  can i get the code for converting decimal to hexadecimal   Here is a code that converts decimal to hexadecimal. import java.io.*; public class
ModuleNotFoundError: No module named 'hexadecimal'
'hexadecimal' How to remove the ModuleNotFoundError: No module named 'hexadecimal' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'hexadecimal'  Hi, My Python
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
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
How to convert EBCDIC format value into ASCII format value in java
How to convert EBCDIC format value into ASCII format value in java  how to convert EBCDIC data format into ASCII format data using java Use Case:I... to convert EBCDIC data value into ASCII data values. Please help me to solve
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
How to convert http website into Https from java?
How to convert http website into Https from java?  could any one tell me how to convert http website into Https from java
how to select the row value that was retrived from the database ?
how to select the row value that was retrived from the database ?  I am getting the data's from the table that was stored in database. Now in the page in which i am getting all the data from the database has an another select
how to select the row value that was retrived from the database ?
how to select the row value that was retrived from the database ?  I am getting the data's from the table that was stored in database. Now in the page in which i am getting all the data from the database has an another select
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 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 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
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
Write a program in Java to convert Decimal number into Binary number
Write a program in Java to convert Decimal number into Binary number  Hi, I have decimal number and I want to convert it to Binary. How to Write a program in Java to convert Decimal number into Binary number? Thanks
How to remove all element from Hashset.
How to remove all element from Hashset. HashSet is set type Collection. It supports only unique value. We can not store duplicate value in ... all element of hashset. Code:  HashSetRemoveElement.java
Neo4j - How to to remove all data from neo4j?
Neo4j - How to to remove all data from neo4j?  Hi, I am learning neo4j. I have created few nodes and links. Now I want to delete all of them. How to delete all nodes, links and properties from a Neo4j database? Thanks  
how can retrive value from combo box in servlet?
how can retrive value from combo box in servlet?  i have a jsp page with combobox. And i want to get value from combox to servlet
How to get more than one value from ajax
How to get more than one value from ajax  I have multiple select list box in php. i filled the value using ajax. how to get different value to fill the same list box Ex. option value as id option name as some string
CONVERT VALUE MONEY TO WORDS IN SQL?
CONVERT VALUE MONEY TO WORDS IN SQL?  i want to covert money or varchar value (like 7500000 ) in words like (75 lacs) then how to convert this value in this words . please give me solution
how to load value in dropdown list after selecting value from first dropdown list using javascript
how to load value in dropdown list after selecting value from first dropdown list using javascript  how to load value in dropdown list after selecting value from first dropdown list using javascript
how to convert ACSII to HEX
how to convert ACSII to HEX  How to convert perticular ASCII charecter(~)"TILDA" from a no. of files to NULL(00:HEX value). ASCII value of ~7e HEX value of ~:00   The given code accepts the string and convert
How to convert a String to an int?
How to convert a String to an int?  I my program I am taking the input from user from a HTML form in JSP page. The value retrieved is in the String format. Now I want to convert into int value. Tell me How to convert a String
how to show effect (visual) on jsp page using value from database
how to show effect (visual) on jsp page using value from database  I... i want is when the value in booking status is "booked" then the pictures shown as seats should be displayed red. when the value in booking status
how to create a bar chart in jsp by fetching value from oracle databse?
how to create a bar chart in jsp by fetching value from oracle databse?  i want to show the population of various states in a bar chart in my jsp page by fetching the data from my oracle table. i am using my eclipse as my IDE
how to convert php webpage to jpg file/take screenshot from client side
how to convert php webpage to jpg file/take screenshot from client side  how to convert php webpage to jpg file/take screenshot from client side
how to show value and percentage in piechart sections from database using jfreechart
how to show value and percentage in piechart sections from database using jfreechart  Hii Sir, I made a pie chart from database using... = response.getOutputStream(); try { String query = "SELECT * from satya
how to display data from database according to entered value in search field
how to display data from database according to entered value in search...("SELECT M.MEMBER_ID, M.FNAME,M.LNAME,M.AGE,B.HEIGHT,B.WEIGHT, B.BMI_VALUE FROM...;/b></td> <td>: <input type="text" name="bmi_value" id="BMI

Ads