Skip to content

how to get System.Drawing.Bitmap from PIXMAP #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
CanadianHusky opened this issue Apr 24, 2025 · 0 comments
Open

how to get System.Drawing.Bitmap from PIXMAP #176

CanadianHusky opened this issue Apr 24, 2025 · 0 comments

Comments

@CanadianHusky
Copy link

CanadianHusky commented Apr 24, 2025

Below code works using wrapper version 3.2.7 (Windows 64 bit, .Net Framework 4.8) and renders the page to a valid jpg, while saving to file
How do I get .Net System.Drawing.Bitmap or Image object in memory, from pix object, without saving to file ?

        Dim fn As String = "input.pdf"
        Dim doc As New Document(fn)
        Dim page As Page = doc.LoadPage(0)
        Dim pix As Pixmap = page.GetPixmap(, 72, "rgb")
        pix.Save("output.jpg")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant