Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Save a Image from a XamPdf417Barcode
posted

Hello Infragistics Support!

I am trying to save an image file (e.g. Tiff-File) from an XamPdf417Barcode-Control.
I already tried the sample code and converted it to my needs.

The problem I have, is that part of the code is cut off in the image.
So the image-file scaling i not correct.

I've attached my small test program - so you can see what I did.

I hope you can help me.

Best regards
Stefan Schmitt

DmcGeneratorTest.zip
Parents
No Data
Reply
  • 34510
    Verified Answer
    Offline posted

    Hello Stefan,

    The margins and the alignment properties are throwing off the RenderTargetBitmap.  If you place the XamPdf417Barcode control inside a Grid and you apply the margin and alignment properties to the grid instead, it will export properly. 

    <Grid Grid.Column="1" Grid.Row="1" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top">
        <ig:XamPdf417Barcode x:Name="DmcPdf417Output"
                                Data="{Binding Text, ElementName=TextBoxInputText}" />
    </Grid>

     

Children