using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace StardewModdingAPI
{
/// Encapsulates access and changes to image content being read from a data file.
public interface IAssetDataForImage : IAssetData
{
/*********
** Public methods
*********/
/// Overwrite part of the image.
/// The image to patch into the content.
/// The part of the to copy (or null to take the whole texture). This must be within the bounds of the texture.
/// The part of the content to patch (or null to patch the whole texture). The original content within this area will be erased. This must be within the bounds of the existing spritesheet.
/// Indicates how an image should be patched.
/// One of the arguments is null.
/// The is outside the bounds of the spritesheet.
/// The content being read isn't an image.
void PatchImage(Texture2D source, Rectangle? sourceArea = null, Rectangle? targetArea = null, PatchMode patchMode = PatchMode.Replace);
/// 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.
/// The minimum texture width in pixels.
/// The minimum texture height in pixels.
/// Whether the texture was resized.
bool ExtendImage(int minWidth, int minHeight);
}
}