v5.0.0
Tue, 09 Apr, 2024Breaking changes
- The datatype for
BrandLogo
in theBrandSettings
class has been updated fromIDocumentFile
toIImageFile
. This change enables the flexibility to pass instances such asImageFilePath
,ImageFileBytes
, orImageFileStream
for 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"), }, };