Board index » delphi » Delphi4 Graphics.pas bug fix
Earl F. Glynn
![]() Delphi Developer |
Sun, 14 Sep 2003 10:56:12 GMT
|
Earl F. Glynn
![]() Delphi Developer |
Sun, 14 Sep 2003 10:56:12 GMT
Delphi4 Graphics.pas bug fix
"Joe C. Hecht" <joehe...@code4sale.com> wrote in message news:3ac14b20$1_2@dnews...
Quote> Bad... very bad :( Another good reason for avoiding palettes. <g> efg |
Joe C. Hech
![]() Delphi Developer |
Sun, 14 Sep 2003 10:23:30 GMT
Re:Delphi4 Graphics.pas bug fixBad... very bad :( Bitmaps with palettes having a stated number of colors Delphi 4, graphics.pas Line 3063 and 3064: InfoHeaderSize := SizeOf(TBitmapInfoHeader) + SizeOf(TRGBQuad) * Fixed in Delphi 5: InfoHeaderSize := SizeOf(TBitmapInfoHeader) + Joe |
Charles Hacke
![]() Delphi Developer |
Sun, 14 Sep 2003 11:11:23 GMT
Re:Delphi4 Graphics.pas bug fixQuote"Joe C. Hecht" wrote: The line/s are: InfoHeaderSize := SizeOf(TBitmapInfoHeader); -- |
Joe C. Hech
![]() Delphi Developer |
Sun, 14 Sep 2003 11:29:55 GMT
Re:Delphi4 Graphics.pas bug fixQuote> What about Delphi3, is this still an error? will see the error exists in the D3 graphics.pas file (at least the one that is from the CD... I doubt the patches touched it). John Kaster is cycling to cure cancer! Lets help him out! http://homepages.borland.com/jkaster/tnt |
Joe C. Hech
![]() Delphi Developer |
Sun, 14 Sep 2003 11:32:44 GMT
Re:Delphi4 Graphics.pas bug fixQuote> "Joe C. Hecht" <joehe...@code4sale.com> wrote in message news:3ac14b20$1_2@dnews... Quote> Joe, this likely explains why a number have reported problems with palettes with 3rd party products. I would say this is another good reason for avoiding using graphics.pas -- |
Joe C. Hech
![]() Delphi Developer |
Sun, 14 Sep 2003 15:37:45 GMT
Re:Delphi4 Graphics.pas bug fixQuote> Joe, In my own code I noticed an error when 16-bit video was used. It may a optional color table for a 15,16,24, and 32 BBP bitmap, but I am pretty sure the VCL does not support it. In general, since I left Borland, I quit debugging graphics.pas -- |
David Taylo
![]() Delphi Developer |
Sun, 14 Sep 2003 15:19:11 GMT
Re:Delphi4 Graphics.pas bug fixJoe, In my own code I noticed an error when 16-bit video was used. It may be the same problem as you have just reported. In any case, I found a simple fix: // There appears to be a problem with 16-bit video where David "Joe C. Hecht" <joehe...@code4sale.com> wrote in message Quote> Bad... very bad :( |
?
![]() Delphi Developer |
Sun, 14 Sep 2003 17:26:23 GMT
Re:Delphi4 Graphics.pas bug fixJoe C. Hecht <joehe...@code4sale.com> wrote in message 3ac194c8_1@dnews... Quote> > Joe, In my own code I noticed an error when 16-bit video was used. It QuoteTbitmap class that supports the following things: 1) big bitmap support 2) At least 24 bit pixel format support 3) scanline access (like that already present in Delphi) It would not make difference if the new class implements or not some gdi methods (infact using scanline one could implement the other methods by himself) . What about? I think that such class would be a good selling for you and a good buying for the Delphi developers that want to do some proof graphics . Of course also the units you are actually selling are useful but it would be great have a unit to manipulate bitmaps in a better way than actually VCL does . Thanx , Francesco . |
Joe C. Hech
![]() Delphi Developer |
Mon, 15 Sep 2003 04:45:48 GMT
Re:Delphi4 Graphics.pas bug fixQuote> Joe , would it be difficult for You (with your experience) create a new I have such a unit. It supports DIBs as large as memory I sell this unit privatly upon request, and has been used I do not sell it publically. I feel better docs are in order, There is some hope... I have thought about doing an Joe |
John of Ai
![]() Delphi Developer |
Mon, 15 Sep 2003 03:27:46 GMT
Re:Delphi4 Graphics.pas bug fix"Joe C. Hecht" <joehe...@code4sale.com> a crit dans le message news: Quote> Bad... very bad :( among you Graphic gurus. Boy you can be FRIGHTENING. I'm not at a level therefore where I have to w<orry too much about palettes but you I'm on Delphi 4 pro. Is there anything to stop me changing Graphics.pas and Thanks in advance John |
1. Bugs fixed in IdMessageClient.pas and IdMessage.pas
2. Bug and Fix in Delphi 2.0 CommCtrl.pas
3. D3: Palette bug found in graphics.pas
4. Delphi 3: BUG in Graphics.pas
5. graphics.pas bugs in Delphi 5
7. D3: Palette bug found in graphics.pas
8. Exception in Graphics.pas (BUG in Compiler Make?)