View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001817 | JEDI VCL | 00 JVCL Components | public | 2004-05-31 03:00 | 2004-06-04 01:08 |
Reporter | wdonker | Assigned To | user72 | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001817: Access violation when using SetBitmapPixelFormat | ||||
Description | When changing BitMapPixelFormat from 24bit to 8bit an access violation occurs in function BitmapToMemoryStream. This is because variable ImageSize is not adjusted to the new, smaller size of the Bitmap. | ||||
Additional Information | This bug was also present in RxLib. Possible fix is in the attached version of JvGraph. | ||||
Tags | No tags attached. | ||||
related to | 0003237 | resolved | remkobonte | 0001817: Access violation when using SetBitmapPixelFormat |
2004-05-31 03:00
|
JvGraph.pas (46,349 bytes) |
|
FYI, this function is now in JvJVCLUtils (JVCL3) |
|
There is already a similar fix in the JvJVCLUtils version that I think accomplishes the same thing: ... // at the end: Result := TMemoryStream.Create; try Result.Write(P^, Length); if SourceBitmapFormat = pfDevice then Result.Write(Bits^, ImageSize) else Result.Write(Bits^, ImageSize div 3); Result.Position := 0; except Result.Free; raise; end; |
|
Ok, that's the one. Consider the bug fixed. |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-05-31 03:00 | wdonker | New Issue | |
2004-05-31 03:00 | wdonker | File Added: JvGraph.pas | |
2004-05-31 23:57 |
|
Note Added: 0004417 | |
2004-06-01 00:03 |
|
Note Added: 0004418 | |
2004-06-03 01:15 |
|
Status | new => feedback |
2004-06-03 09:14 | wdonker | Note Added: 0004453 | |
2004-06-04 01:08 |
|
Status | feedback => resolved |
2004-06-04 01:08 |
|
Resolution | open => fixed |
2004-06-04 01:08 |
|
Assigned To | => user72 |
2005-09-27 14:37 | remkobonte | Relationship added | related to 0003237 |