Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Color Shift in PDF Display – Light Gray -> Dark
  FAQ FAQ  Forum Search   Register Register  Login Login

Color Shift in PDF Display – Light Gray -> Dark

 Post Reply Post Reply
Author
Message
Skandinavier View Drop Down
Beginner
Beginner


Joined: 27 Nov 20
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Skandinavier Quote  Post ReplyReply Direct Link To This Post Topic: Color Shift in PDF Display – Light Gray -> Dark
    Posted: 31 Mar 25 at 10:31AM
Hello everyone,

I’m loading a PDF document into a PictureBox for display, but I’m experiencing an issue with color accuracy. The gray tones in the original PDF appear different in the PictureBox – specifically, light gray turns into dark gray.

Functions, that I use:

' Open the file, get a file handle
fileHandle = QP.DAOpenFileReadOnly(File_Name, password)

 ' Render the page to BMP format into the byte array
Dim bitmapData = QP.DARenderPageToString(fileHandle, pageReference, 0, smallestDPI)

' Put the byte array into a stream
Dim stream As New System.IO.MemoryStream(bitmapData)

 ' Create a new Image from the stream
 PctPreview.Image = Image.FromStream(stream)


Does anyone know what might be causing this? How can I ensure that the colors are displayed correctly?

Thanks for your help! 


Edited by Skandinavier - 31 Mar 25 at 10:34AM
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store