A portable medication cartridge allows for both manual and automated dispensing of tablets or capsules of virtually all sizes through a radial dispensing apparatus. Both of the units have a plurality of heat exchanging pipes and fins juxtaposed and alternately stacked into a lamination, in common. The transformation functions are defined by determining transformation function defining parameters for the transformation functions on the basis of the picture element density of the original image. To provide a thermoplastic resin foam by the method, electric servomotors are employed to drive the screw.