🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15976

Reading clipboard formats

#15976
From: Chris
Date: Thu, 05 Jun 2003 23:20
11 lines
1418 bytes
When using
TImage->Picture->Bitmap->Assign(Clipboard());
Is there any way to tell it to choose  CF_DIB over CF_BITMAP?
If not, is there a not-so-hard way to do it myself?

The reason being is because some programs like MSPaint copy the image to the
clipboard in bitmap format properly, some others like PSP seem to use 256
color formats or a bad palette, and you lose lots of colors.
However, I believe PSP stores it well in some format, because when you copy
from it and paste to it, the colors seem to be proper, therefore I think
it's loading CF_DIB...
Technical Details
Message-ID: <3edfd042$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ffc98a5b3b8ea52c,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-05 16:27:43 PST
From: "Chris" <Chris8852@adelphia.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Reading clipboard formats
Date: Thu, 5 Jun 2003 19:20:32 -0400
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 68.65.164.124
Message-ID: <3edfd042$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054855234 68.65.164.124 (5 Jun 2003 16:20:34 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail