v5.0.0-beta
Tue, 09 Apr, 2024Breaking changes
- The datatype for
BrandLogoin theBrandSettingsclass has been updated fromIDocumentFiletoIImageFile. This change enables the flexibility to pass instances such asImageFilePath,ImageFileBytes, orImageFileStreamfor the brand logo.
Previous
// removed code for brevity
BrandSettings brandSettings = new BrandSettings()
{
BrandLogo = new DocumentFileBytes()
{
ContentType = "image/png",
FileName = "D:/SyncfusionLogo.png",
},
};
Now
// removed code for brevity
BrandSettings brandSettings = new BrandSettings()
{
BrandLogo = new ImageFileBytes()
{
ContentType = "image/png",
FileBytes = File.ReadAllBytes("D:/SyncfusionLogo.png"),
},
};