GDViewer
GDViewer
After loading a file into a gdviewer component, how can I use this component to apply a Barcode on it, for example?
I know how to put a Barcode on a Tiff or PDF document using the examples on the manual but if I have the document already loaded on a gdviewer, can I add a barcode on it?
Regards
Rogerio
I know how to put a Barcode on a Tiff or PDF document using the examples on the manual but if I have the document already loaded on a gdviewer, can I add a barcode on it?
Regards
Rogerio
Re: GDViewer
Hi,
here the steps:
1 - You have to load the image using the GdPcitureImaging class. You will obtain a GdPicture Image Identifier (ImageID)
2- Load the GdPicture Image on the GdViewer but using the DisplayFromGdPictureImage() method
3- Draw your barcode on your image, from GdPictureImaging
4- Call the Redraw() method of the GdViewer, and then you will see your barcode displayed.
Hope this helps !
Kind regards,
Loïc
here the steps:
1 - You have to load the image using the GdPcitureImaging class. You will obtain a GdPicture Image Identifier (ImageID)
2- Load the GdPicture Image on the GdViewer but using the DisplayFromGdPictureImage() method
3- Draw your barcode on your image, from GdPictureImaging
4- Call the Redraw() method of the GdViewer, and then you will see your barcode displayed.
Hope this helps !
Kind regards,
Loïc
Re: GDViewer
Thank you Loïc.
Could you please send me some code example?
Best regards
Rogerio
Could you please send me some code example?
Best regards
Rogerio
Re: GDViewer
Sure:
Code: Select all
Using oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("")
GdViewer1.DisplayFromGdPictureImage(ImageID)
oGdPictureImaging.Barcode1DWrite(ImageID, Barcode1DWriterType.Barcode1DWriterCode128, "0123456789", 100, 100, 100, 20, Color.Black)
GdViewer1.Redraw()
End Using
Who is online
Users browsing this forum: No registered users and 2 guests