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 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









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
Convert Binary to Hexadecimal
Convert Binary to Hexadecimal       In this section, you will learn to convert binary data into hexadecimal.  The java.lang package provides the functionality to convert
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 integer type data into binary, octal and hexadecimal
will learn how to convert an integer type data into binary, octal and hexadecimal... Convert integer type data into binary, octal and hexadecimal... into binary, octal, and hexadecimal. The following program helps you to convert
How to convert long to hexadecimal - Java Beginners
How to convert long to hexadecimal  Dear all, anyone know how to convert long data to hexadecimal, please send me the information. Thanks  Hi friend, Returns the hexadecimal string it consists of a long value
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 Decimal to Hexadecimal
Convert Decimal to Hexadecimal     ... into hexadecimal. The java.lang package provides the functionality to convert a decimal...() method convert it  into hexadecimal data. toHexString(): This method takes
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... containing  the value extracted from the specified String. The result is an integer
Convert Hexadecimal to Decimal
Convert Hexadecimal to Decimal       In this section, you will learn to change hexadecimal number...; to convert a hexadecimal into a decimal number.  parseInt(): This method takes two
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
decimal to hexadecimal
decimal to hexadecimal  using array in java convert decimal to hexadecimal.   Hi, Please see the example Convert Decimal to Hexadecimal. (adsbygoogle = window.adsbygoogle || []).push({}); Thanks
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
converting From Hexadecimal to Decimal System - Java Interview Questions
converting From Hexadecimal to Decimal System  Write a program in Java user is required to enter a number system XVI and turn it into the decimal system, using StringBuffer  Check this link. http://www.roseindia.net
Java display file content in hexadecimal format
Java display file content in hexadecimal format In this section, you will learn how to read the file content and display it in hexadecimal format. Reading... the file contents byte by byte and print the value in hexadecimal format
hexadecimal conversion java compilation - UML
hexadecimal conversion java compilation  write a simple program (in any language of your choice) that accepts a program of 12 binary digits) and converts them to both decimal and hexadecimal as outputs  Hi Friend
Convert Hexa To Char
; In this example, you will learn how to convert hexadecimal to char number..., the second parameter is 16 to convert a hexadecimal into a decimal number. After that takes the char value which the convert in char number by typecasting
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 read all value from int buffer in java.
How to read all value from int buffer in java. In this tutorial, we will discuss how to read all value from int buffer in java.  IntBuffer API...; int get() The get() method read int value from current position
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 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:ADS
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
. To convert the Decimal number into binary number use toBinaryString() method... DecimalToBinary Enter the decimal value: 123 Binary: 1111011... Convert Decimal into Binary    
Java Convert decimal to binary using Stacks
Java Convert decimal to binary using Stacks In this section, you will learn how to convert decimal into binary using stacks. You all are aware of Stacks... operation removes an item from the top of the list. Using these operations, we
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 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:ADS_TO_REPLACE_1 This program takes a decimal number
convert JPG format to Binary formart - IDE Questions
convert JPG format to Binary formart  How can i convert JPG format to Binary format in visual basic ? is there any code for that can work? thanks Mohamad
Java To Vb.Net Conversion - Java Beginners
Java To Vb.Net Conversion  How to convert Java Code To VB.net,which Software is useful to convert java to vb.net,plz Help Me
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 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 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 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 value from dijit.Tree to dijit.MenuItem - Ajax
How to pass value from dijit.Tree to dijit.MenuItem  Hi Friends, I... of 'Test' I want to show the value of that Node( which is comming from TreeNode... node whicl will apper on right click. What I have already done. From my server
JDOM Attribute Example, How to convert value of attribute in different data type
JDOM Attribute Example, How to convert value of attribute in different data type In this tutorial, we will see how to retrieve the value... in runtime. This examples shows how to set the value of node element. Here we
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 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
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
Writing to and reading from a binary file in java.
Writing to and reading from a binary file in java.  I have written the following code to convert an ASCII text file to a binary file: public static... the binary file from another program as follows: m_dis = new DataInputStream
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 (adsbygoogle
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
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
binary search tree from text file
binary search tree from text file  How so I go about constructing a binary search tree from a text file, which has letters and numbers, which must be sorted and printed in ascending order. E.g. Text file contents 3 apples pears
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 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 you will Show all data from a table.
How you will Show all data from a table.   How you will Show all data from a table.   Hi, following query is used to show all the data of the table-ADS_TO_REPLACE_1 SELECT * FROM tablename; Thanks

Ads