Archive for the 'Delphi' Category

REST web service with Delphi

Monday, March 26th, 2007

When I was looking for examples of how to make REST calls in Delphi 7, I found
XML-RPC for Delphi. XML-RPC for Delphi is an object library that utilises Open Source Indy Components and helps your application connects REST web service. XML-RPC comes full source code and some examples, but does not come any documentation.

Here is a round up of what XML-RPC supports:

  • Basic data types, string, interger, datetime etc.
  • Array data type
  • Struct data type
  • Automatic data type conversion between Delphi data type and REST data type
  • Base64 string conversion

I am current using XML-RPC to develop a Wordpress client in Delphi. I will post more result and findings in the future.

Delphi code part 4 - Bitmap

Wednesday, March 7th, 2007

After I learned how colour can be manupilated, I started to work on bitmaps. Back then I even borrowed a book to learn how bitmaps can be modified, like blur, sharp, find edge, etc. The technique was called filtering.

Here is the code

Show Code | Download Grafman.pas

I also written another unit which is required by the above unit (grafman.pas), it contains all useful function for tile bitmaps, apply a mask to a bitmap, draw a 3D text, etc

Show Code | Download DrawMan.pas