-
I change source code to:
----------
if(pOutputImage) // (*2)
{
FIMEMORY* pMemory = FreeImage_OpenMemory();
if( SUCCEEDED(hr = pMemory ? S_OK : E_FAIL) )
{
if(
(FreeImage_SaveToMemory(ePutFormat, pOutputImage, pMemory, nPutFlags) || (hr = E_FAIL, false)) && // (*1)
(FreeImage_SeekMemory(pMemory, 0, SEEK_SET) || (hr =...
2009-07-13 07:30:08 UTC in FreeImage
-
Thanks cryptor3.
Your point is very profitable.
I check it.
2009-07-13 05:44:49 UTC in FreeImage
-
Thanks drolon.
This is part of source code.
The error occur in (*1).
------------------------------
HRESULT CMyClass::Convert(
const Foo::CConvertRequest& rRequest,
Foo::IImageInput& rInput,
Foo::IImageOutput& rOutput
)
{
HRESULT hr = E_FAIL;
FIMEMORY* pMemory = NULL;
FREE_IMAGE_FORMAT eFormat = FIF_UNKNOWN;
FIBITMAP* pInputImage = NULL;...
2009-07-13 01:53:16 UTC in FreeImage
-
Hi.
I got an error "Access violation".
I did FreeImage_SaveToMemory.
This is call stacks.
---
03e1df88 10047ab3 Foo!LeadUpVec+0x2c
03e1dfb8 10048289 Foo!jpeg_freeimage_dst+0xb53
03e1e310 1001c887 Foo!jpeg_freeimage_dst+0x1329
03e1e34c 10019f3a Foo!FreeImage_SaveToHandle+0x67
03e1e378 1000252e Foo!FreeImage_SaveToMemory+0x3a
03e1e3ac 10002864 Foo!CMyClass::Convert+0x2be.
2009-07-10 07:06:41 UTC in FreeImage
-
Hi.
Thank you Hervé.
I could understand your opinion.
I will save 32-bit PNG format.
I was helped very much by your reply.
Thank you so much.
--
yrm.
2009-06-24 01:20:11 UTC in FreeImage
-
I did FreeImage_Rescale to Transparent-GIF image.
Then, it became 32bit image.
To save it with GIF again
FreeImage_ConvertTo24Bits, FreeImage_ColorQuantize was done.
Transparent information is lost when saving it with GIF.
I want rescaled Transparent-GIF image.
Are not there any methods?.
2009-06-22 08:00:43 UTC in FreeImage
-
Hi, great man drolon.
I was able to confirm the operation of new PluginPNG.cpp.
It is quite wonderful.
I wish to express our gratitude for your activity.
Thanks drolon!
# I created Nmageman that by using FreeImage.
# http://na-s.jp/Nmageman/index.en.html
#
# It is ISAPI Extension of IIS.
# It convert image on access time.
# Very useful.
# Creator of web site...
2008-03-10 02:22:48 UTC in FreeImage
-
Hi great men.
I am using FreeImage3100 on VS2005.
When I did FreeImage_Load(...) with transparency PNG8 image,
FreeImage_IsTransparent(...) of returned image is TRUE.
And FreeImage_GetColorType(...) is FIC_PALETTE,
FreeImage_GetBPP(...) is 8.
But FreeImage_GetTransparentIndex(...) is -1.
This image is transparency truly.
If view by IE, I can see transparent image.
I think...
2008-03-04 10:24:16 UTC in FreeImage
-
Thanks Hervé.
Very quick correspondence is wonderful.
I am looking forward to next release.
Thank you.
---
YRM.
2006-10-02 01:34:40 UTC in FreeImage
-
hello.
I have a probrem in Transparency GIF.
This GIF file is 4bpp and transparency.
This file cant load as transparent image in FreeImage.
I found this source
----------------------------------------------
FreeImage_SetTransparencyTable(FIBITMAP *dib, BYTE *table, int count) {
if (dib) {
if (FreeImage_GetBPP(dib) == 8) {
((FREEIMAGEHEADER *)dib->data)->transparent =...
2006-09-29 10:40:12 UTC in FreeImage