Duy Nguyen#33234
Hi,
I want to change the Font for PsdTextFrame in psd file. Can you please give me advise.
I try to use code as beblow but I can't
var textFrame = (PsdTextFrame)frame;
textFrame.Font = Aurigma.GraphicsMill.Drawing.Font("Arial", 1);
If I use graphics to raw new string with new font , I don't know how to add a new bitmap to current PSD.
using (var graphics = bitMap.GetAdvancedGraphics())
{
var font = FontRegistry.Installed.CreateFont("Arial", textFrame.FontSize, graphics.DpiX, graphics.DpiY);
var text = new PlainText("MODESTO SR", font);
int y = textFrame.Y - (int)text.GetBlackBox().Top;
text.Position = new System.Drawing.PointF(textFrame.X, y);
graphics.DrawText(text);
}
--> 2 ways above can't have me change Font. Please help me to check.
Thanks,
Duy
I want to change the Font for PsdTextFrame in psd file. Can you please give me advise.
I try to use code as beblow but I can't
var textFrame = (PsdTextFrame)frame;
textFrame.Font = Aurigma.GraphicsMill.Drawing.Font("Arial", 1);
If I use graphics to raw new string with new font , I don't know how to add a new bitmap to current PSD.
using (var graphics = bitMap.GetAdvancedGraphics())
{
var font = FontRegistry.Installed.CreateFont("Arial", textFrame.FontSize, graphics.DpiX, graphics.DpiY);
var text = new PlainText("MODESTO SR", font);
int y = textFrame.Y - (int)text.GetBlackBox().Top;
text.Position = new System.Drawing.PointF(textFrame.X, y);
graphics.DrawText(text);
}
--> 2 ways above can't have me change Font. Please help me to check.
Thanks,
Duy