AuthorComments
TgaImage.AuthorComments property
Obtient ou définit les commentaires de l’auteur. Il s’agit d’un champ ASCII composé de 324 octets organisés en quatre lignes de 80 caractères, chacune suivie d’un terminateur nul.
public string AuthorComments { get; set; }
Exemples
Mise à jour des propriétés publiques de l’image TGA chargée.
[C#]
using (TgaImage image = (TgaImage)Image.Load("test.tga"))
{
image.DateTimeStamp = testTime;
image.AuthorName = "John Smith";
image.AuthorComments = "Comment";
image.ImageId = "ImageId";
image.JobNameOrId = "Important Job";
image.JobTime = TimeSpan.FromDays(10);
image.TransparentColor = Color.FromArgb(123);
image.SoftwareId = "SoftwareId";
image.SoftwareVersion = "abc1";
image.SoftwareVersionLetter = 'a';
image.SoftwareVersionNumber = 2;
image.XOrigin = 1000;
image.YOrigin = 1000;
image.Save("test.tga")
}
Obtention des valeurs des propriétés publiques de l’image TGA chargée.
[C#]
using (TgaImage image = (TgaImage)Image.Load("test.tga"))
{
dateTimeStamp = image.DateTimeStamp;
authorName = image.AuthorName;
authorComments = image.AuthorComments;
imageId = image.ImageId;
jobNameOrId = image.JobNameOrId;
jobTime = image.JobTime;
keyColor = image.TransparentColor;
softwareId = image.SoftwareId;
softwareVersion = image.SoftwareVersion;
softwareVersionLetter = image.SoftwareVersionLetter;
softwareVersionNumber = image.SoftwareVersionNumber;
xOrigin = image.XOrigin;
yOrigin = image.YOrigin;
gammaValueDenominator = image.GammaValueDenominator;
gammaValueNumerator = image.GammaValueNumerator;
hasAlphaChannel = image.HasAlpha;
hasColorMap = image.HasColorMap;
height = image.Height;
isGrayScale = image.IsGrayScale;
pixelAspectRatioDenominator = image.PixelAspectRatioDenominator;
pixelAspectRatioNumerator = image.PixelAspectRatioNumerator;
size = image.Size;
width = image.Width;
}
Voir également
- class TgaImage
- espace de noms Aspose.Imaging.FileFormats.Tga
- Assemblée Aspose.Imaging