This project is read-only.
1
Vote

Split the “Picture” class into two

description

From documentation:
Picture – plays two roles, and ideally it should be separates into two classes. The first role deals with bitmap image: loading file, providing IBitmapPicture interface, drawing and saving the bitmap picture and its transformations. The second role is building the VectorSketch in Calculate() method, and be the mediator between UI and VectorSketch class.
 
Proposal:
  1. The class Picture stays responsible to the first role.
  2. We extract the class VectorScetchBuilder with second role

comments