summaryrefslogtreecommitdiff
path: root/src/SMAPI/IAssetDataForImage.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-02-20 21:12:00 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-02-20 21:12:00 -0500
commit6a9bf10a81f4557d44668666117d99440d99d873 (patch)
tree915ab2b89956e016d160a70f4fabe7a8f77b89c9 /src/SMAPI/IAssetDataForImage.cs
parenteff29d94fbf41f0992ffac7bb5a04a08b71f3453 (diff)
downloadSMAPI-6a9bf10a81f4557d44668666117d99440d99d873.tar.gz
SMAPI-6a9bf10a81f4557d44668666117d99440d99d873.tar.bz2
SMAPI-6a9bf10a81f4557d44668666117d99440d99d873.zip
migrate to new method in SMAPI 3.3
Diffstat (limited to 'src/SMAPI/IAssetDataForImage.cs')
-rw-r--r--src/SMAPI/IAssetDataForImage.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/IAssetDataForImage.cs b/src/SMAPI/IAssetDataForImage.cs
index 1109194f..27ed9267 100644
--- a/src/SMAPI/IAssetDataForImage.cs
+++ b/src/SMAPI/IAssetDataForImage.cs
@@ -19,5 +19,11 @@ namespace StardewModdingAPI
/// <exception cref="ArgumentOutOfRangeException">The <paramref name="targetArea"/> is outside the bounds of the spritesheet.</exception>
/// <exception cref="InvalidOperationException">The content being read isn't an image.</exception>
void PatchImage(Texture2D source, Rectangle? sourceArea = null, Rectangle? targetArea = null, PatchMode patchMode = PatchMode.Replace);
+
+ /// <summary>Extend the image if needed to fit the given size. Note that this is an expensive operation, creates a new texture instance, and that extending a spritesheet horizontally may cause game errors or bugs.</summary>
+ /// <param name="minWidth">The minimum texture width.</param>
+ /// <param name="minHeight">The minimum texture height.</param>
+ /// <returns>Whether the texture was resized.</returns>
+ bool ExtendImage(int minWidth, int minHeight);
}
}