Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. myGraphics.ReleaseHdc(hdc)
  2.  
  3. Dim doc As New PdfDocument()
  4. doc.Pages.Add(New PdfPage())
  5. Dim xgr As XGraphics = XGraphics.FromPdfPage(doc.Pages(0))
  6. Dim img As XImage = XImage.FromFile(myGraphics.GetHdc)
  7.  
  8. xgr.DrawImage(img, 0, 0)
  9. doc.Save("E:out.pdf")
  10. doc.Close()
  11.  
  12.  
  13. ' myBmp.Save("E:out.bmp")
  14.  
  15. myGraphics.Dispose()
  16. myGraphics = Nothing
  17.  
  18. myBmp = Nothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement