0
raster image to hexadecimal conversion
New Here
,
/t5/postscript-discussions/raster-image-to-hexadecimal-conversion/td-p/1606788
Aug 14, 2008
Aug 14, 2008
Copy link to clipboard
Copied
Dear People
What's the easiest way of converting a raster image to hexadecimal ?
For example, I might want to turn a 100 X 100 bitmap, 24 bits deep, into a string of 60,000 hex digits.
This, for feeding to the PS colorimage operator.
Thanks in advance.
What's the easiest way of converting a raster image to hexadecimal ?
For example, I might want to turn a 100 X 100 bitmap, 24 bits deep, into a string of 60,000 hex digits.
This, for feeding to the PS colorimage operator.
Thanks in advance.
TOPICS
Programming
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
LATEST
/t5/postscript-discussions/raster-image-to-hexadecimal-conversion/m-p/1606789#M313
Aug 14, 2008
Aug 14, 2008
Copy link to clipboard
Copied
It depends on your programming language and the current form of the
image. I assume you have the uncompressed pixel data, NOT just the
contents of a bitmap file?
If I were writing in C I use the standard technique of defining a
string of 16 characters for each hex digit, and index it with each
half of each byte in turn.
Aandi Inston
image. I assume you have the uncompressed pixel data, NOT just the
contents of a bitmap file?
If I were writing in C I use the standard technique of defining a
string of 16 characters for each hex digit, and index it with each
half of each byte in turn.
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

