Метод | Описание | |
---|---|---|
CopyImage ( IFilenameResolver destinationImageFilenameResolver ) : void |
Copies the image (and all associated data files) to the specified image name
|
|
CreateDirectoryStructure ( ) : void |
Creates the directory structure for this image to be saved to disk
|
|
DeleteImage ( ) : void |
Deletes the image and all associated data files
|
|
LoadData ( GraphicsDevice device, |
Loads existing image data from disk into the undoRedoRenderTargets and copies latest canvas recorder files into the 'working folder'
|
|
LoadImageStateData ( ) : |
Loads the imageStateData from disk
|
|
PictureIOManager ( IFilenameResolver filenameResolver ) : System |
Initializes a new instance of the Paint.PictureIOManager class.
|
|
SaveData ( |
Saves all the undoRedoRenderTargets to disk and the imageStateData
|
|
SaveImageStateData ( string filename, |
Saves the imageStateData to disk
|
public CopyImage ( IFilenameResolver destinationImageFilenameResolver ) : void | ||
destinationImageFilenameResolver | IFilenameResolver | /// Details of where we need to copy the files. /// |
Результат | void |
public CreateDirectoryStructure ( ) : void | ||
Результат | void |
public LoadData ( GraphicsDevice device, |
||
device | GraphicsDevice | /// Graphics device required for rendering /// |
spriteBatch | /// Sprite Batch for rendering the images into the rendertargets /// | |
undoRedoRenderTargets | /// Sequence of images representing the undo/redo chain /// | |
backgroundColor | Color | /// background color for all rendering /// |
Результат | void |
public LoadImageStateData ( ) : |
||
Результат |
public PictureIOManager ( IFilenameResolver filenameResolver ) : System | ||
filenameResolver | IFilenameResolver | Filename resolver. |
Результат | System |
public SaveData ( |
||
imageStateData | Image state data. | |
masterImageRenderTarget | /// Sequence of images representing the undo/redo chain | |
undoRedoRenderTargets | ||
bottomMarginToCutOff | int | Because the toolbox will always take up some space we will cut off the bottom section (toolbox height) /// when saving the master image so that there is no annoying white space at the bottom |
Результат | void |
public SaveImageStateData ( string filename, |
||
filename | string | File to save the image data |
imageStateData | Image state data. | |
Результат | void |