The following tutorials were used in the creation of my intro to image processing.
Drawing to an off-screen buffer to allow manipulation:
Walk-through from basic intro to passing a convolution matrix over our image.
You may want to look at OpenCV
Look through Photoshop filters to see how strokes canbe mapped to filtered source images. Or look at the field of Non-Photorealistic rendering for inspiration.