public void ResizeCanvas_WithAnchorType_ShouldReturnImage(int width, int heigth, AnchorType anchorType) { // Act var result = QuickProcess.ResizeCanvas(_image, width, heigth, anchorType, color); // Assert result.ShouldSatisfyAllConditions ( () => result.Size.ShouldNotBeNull(), () => result.Height.ShouldBe(heigth), () => result.Width.ShouldBe(width) ); }
/// <summary> /// Resizes the canvas. /// </summary> /// <param name="width">The width.</param> /// <param name="height">The height.</param> /// <param name="anchor">The anchor.</param> /// <param name="background">The background.</param> public void ResizeCanvas(int width, int height, AnchorType anchor, Color background) { //SetLicense(); _image = QuickProcess.ResizeCanvas(_image, width, height, anchor, background); }