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!
![]() |
Color Shift in PDF Display – Light Gray -> Dark |
Post Reply ![]() |
Author | |
Skandinavier ![]() Beginner ![]() Joined: 27 Nov 20 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store