How to apply an angle rotation into a 1bpp tif image
How to apply an angle rotation into a 1bpp tif image
When I attempt to rotate a tiff image I receive an out of memory error both in your samples and my code. Does gdpicture pro support the rotation of tif files. If so how do I do it.
Thanks
Shaun
Thanks
Shaun
Ok Thanks for your mail.
I've understood your problem.
You want to make an angle rotation which is not a Std 90, 180.. rotation into an indexed color image using an old gdiplus.dll edition.
First, you are using an old version of GdPicture Pro. If you run your code with the last edition the error no will be 60 instead 3.
Error 60 are defined here: https://www.gdpicture.com/references/gdp ... tatus.html
Error code 60: PixelFormatMustBeConverted (This error can occurs with old gdiplus.dll version). You need to convert image pixel format to 16, 24, 32 or 64.
To resume:
You have just to convert the image pixel format to a non indexed palette (16bpp, 24bpp, 32 bpp...) before aplying the angle rotation.
https://www.gdpicture.com/references/gdp ... 16Bpp.html
https://www.gdpicture.com/references/gdp ... 24Bpp.html
https://www.gdpicture.com/references/gdp ... 32Bpp.html
https://www.gdpicture.com/references/gdp ... 48Bpp.html
https://www.gdpicture.com/references/gdp ... 64Bpp.html
After the rotation you can return to 1bpp image pixel format calling the ConvertTo1bppFast() method https://www.gdpicture.com/references/gdp ... pFast.html
I hope I was clear enought.
Best regards,
Loïc Carrère
I've understood your problem.
You want to make an angle rotation which is not a Std 90, 180.. rotation into an indexed color image using an old gdiplus.dll edition.
First, you are using an old version of GdPicture Pro. If you run your code with the last edition the error no will be 60 instead 3.
Error 60 are defined here: https://www.gdpicture.com/references/gdp ... tatus.html
Error code 60: PixelFormatMustBeConverted (This error can occurs with old gdiplus.dll version). You need to convert image pixel format to 16, 24, 32 or 64.
To resume:
You have just to convert the image pixel format to a non indexed palette (16bpp, 24bpp, 32 bpp...) before aplying the angle rotation.
https://www.gdpicture.com/references/gdp ... 16Bpp.html
https://www.gdpicture.com/references/gdp ... 24Bpp.html
https://www.gdpicture.com/references/gdp ... 32Bpp.html
https://www.gdpicture.com/references/gdp ... 48Bpp.html
https://www.gdpicture.com/references/gdp ... 64Bpp.html
After the rotation you can return to 1bpp image pixel format calling the ConvertTo1bppFast() method https://www.gdpicture.com/references/gdp ... pFast.html
I hope I was clear enought.
Best regards,
Loïc Carrère
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest