你目前要的功能就是要对一个单独的图片做处理的, //1克隆图片
RasterImage sourceimage= image.Clone();
//2处理图片
ChangeSaturationCommand csc = new ChangeSaturationCommand();
csc.Change = -500;
csc.Run(sourceimage);
//合并
CombineCommand command = new CombineCommand();
command.SourceImage = sourceimage;
// the rectangle that represents the affected area of the destination image.
command.DestinationRectangle = new LeadRect(640, 360, 150,150);
command.SourcePoint = new LeadPoint(640,360);
command.Flags = CombineCommandFlags.OperationAdd | CombineCommandFlags.Destination0;
command.Run(image);
|