Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: aikimarkPosted on 2008-06-13 at 18:42:15ID: 21783706
Is the Base64 decoding a problem? If so, please look at the decoding routine found on this Torry's page: er.ch/torr y/showcode .php?id=15 24
phi/graphi cedit1.htm l elphi/gdi/ drawing101 .htm brary/bluc /text/uc05 2102b.htm
http://www.swissdelphicent
When you reach this statement:
x := x mod 256;
You will have the numeric value you seek. You do not need the next statement to convert this numeric value into a character. Just add the numeric value to a byte array or list.
Then use the numeric value pairs to paint on a canvas, using a series of .LineTo() and .MoveTo() methods.
References and Tutorials:
http://www.ibrtses.com/del
http://www.functionx.com/d
http://delphi.about.com/li
After the painting, you will have a bitmap.
Since Base64 uses more characters than bytes, you will be safe to allocate a byte array the same size as the number of characters.