|
|
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Image tutorial finished...
|
|
|
|
Re: Image tutorial finished... [message #5402 is a reply to message #5383] |
Mon, 18 September 2006 15:50 |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
luzr wrote on Sun, 17 September 2006 23:28 | 2. - thanks!
4, 5, 6 - there is a stupid bug OpenAny unfortunately.
Quick fix:
One<StreamRaster> StreamRaster::OpenAny(Stream& s)
{
INTERLOCKED_(sAnyRaster)
for(int i = 0; i < Map().GetCount(); i++) {
int64 p = s.GetPos();
One<StreamRaster> raster = (*RasterFactory(Map()[i]))();
s.ClearError();
if(raster->Open(s))
return raster;
s.ClearError();
s.Seek(p);
}
return NULL;
}
(The problem is that GIF loader uses serialization, which in case the file is not GIF fails and puts the Stream into Error mode. Seek is then not performed).
|
Thank you very much for your answer.
I re-checked the issue using
- Windows XP,
- MSC8,
- the new 609-dev2,
- your above cited patch.
All problems seem to be solved now except one :
TIF (TIFF) files can neither be opened with Image04 nor can they be edited with Image05. (It goes without saying that this is true even if the "plugin\tif" package is added.) And the TIF (TIFF) files are not to blame: to reinsure this I opened them using Photoshop, GIMP, and IrfanView: no problems!
Werner
|
|
|
Re: Image tutorial finished... [message #5403 is a reply to message #5402] |
Mon, 18 September 2006 17:03 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Werner wrote on Mon, 18 September 2006 09:50 |
luzr wrote on Sun, 17 September 2006 23:28 | 2. - thanks!
4, 5, 6 - there is a stupid bug OpenAny unfortunately.
Quick fix:
One<StreamRaster> StreamRaster::OpenAny(Stream& s)
{
INTERLOCKED_(sAnyRaster)
for(int i = 0; i < Map().GetCount(); i++) {
int64 p = s.GetPos();
One<StreamRaster> raster = (*RasterFactory(Map()[i]))();
s.ClearError();
if(raster->Open(s))
return raster;
s.ClearError();
s.Seek(p);
}
return NULL;
}
(The problem is that GIF loader uses serialization, which in case the file is not GIF fails and puts the Stream into Error mode. Seek is then not performed).
|
Thank you very much for your answer.
I re-checked the issue using
- Windows XP,
- MSC8,
- the new 609-dev2,
- your above cited patch.
All problems seem to be solved now except one :
TIF (TIFF) files can neither be opened with Image04 nor can they be edited with Image05. (It goes without saying that this is true even if the "plugin\tif" package is added.) And the TIF (TIFF) files are not to blame: to reinsure this I opened them using Photoshop, GIMP, and IrfanView: no problems!
Werner
|
Thanks. This most likely looks like problem in TIF plugin. Frankly, since Tom have adapted it several weeks ago, no one really tested it
|
|
|
Goto Forum:
Current Time: Thu Apr 18 14:12:47 CEST 2024
Total time taken to generate the page: 0.01463 seconds
|
|
|