Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners how to convert all the pixel value to hexadecimal and from hexadecimal to binary in vb.net
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


lena
how to convert all the pixel value to hexadecimal and from hexadecimal to binary in vb.net
0 Answer(s)      a year and 9 months ago
Posted in : Java Beginners


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

Advertisement
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...(): 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 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 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
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
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 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
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
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... 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 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... get() The get() method read int value from current position of int
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 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
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
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
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
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 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 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
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 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 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- SELECT * FROM tablename; 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
Advertisements
 

 

 

DMCA.com