[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456[7]8910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 07:40:10 06/18/01 Mon
Author: Michel
Subject: Re: How to set the properties in BitmapInfoHeader before save a bitmap
In reply to: wto 's message, "How to set the properties in BitmapInfoHeader before save a bitmap" on 23:55:37 06/15/01 Fri


The BitmapInfo property was intended as a read-only property.

What you can do is open up a TFileStream, seek to the appropriate file position in the file and write the value directly.

For example, this is what is done in procedure EnPcxGr.TPcxGraphic.SaveToStream to write the XDpi and YDpi values.

I don't recall the exact structure of a BMP file, but the bitmap info record is at the beginning of the file.

Best regards,


> Currently I create a TBitmapGraphic in memeory and I
>to set its BitmapInfo.BmpHeader.biClrImportant
>property to
>a value and then save the TBitmapGraphic to a
>uncompressed bitmap file. (I want to create a windows
> I try to set the property like this:
>BitmapGraphic.BitmapInfo.BmpHeader.biClrImportant :=
> but find the bitmapinfo is readonly, how should I do?

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.