Skip to content

Commit e32389e

Browse files
committed
[-] Corrigido impressão da imagem no modo Pagina.
1 parent dd83dff commit e32389e

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/OpenAC.Net.EscPos/Command/ModoPaginaRegiao.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,16 @@ public void ImprimirImagem(Image imagem, CmdAlinhamento aAlinhamento = CmdAlinha
356356
{
357357
this.Log().Debug($"{MethodBase.GetCurrentMethod()?.Name}");
358358

359-
var cmd = new ImageCommand(interpreter)
359+
commands.Add(new EspacoEntreLinhasCommand(interpreter) { Espaco = 16 });
360+
361+
commands.Add(new ImageCommand(interpreter)
360362
{
361363
Imagem = imagem,
362-
IsHiDPI = isHdpi
363-
};
364+
IsHiDPI = isHdpi,
365+
Alinhamento = aAlinhamento
366+
});
364367

365-
commands.Add(cmd);
368+
commands.Add(new EspacoEntreLinhasCommand(interpreter) { Espaco = EspacoEntreLinhas });
366369
}
367370

368371
#endregion Methods

0 commit comments

Comments
 (0)