Image halftone and image dithering technology (PDF, with matlab, c language code)