Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

addAnnotBitmap doesn't work in 2.2.0

More
IP: 192.168.0.127 12 years 3 months ago #6379 by emanuele
when you add a bitmap, you have to set "has_alpha" parameter to true, in Page_addAnnotBitmap method.
I also tried to add a png with transparent background with success
More
IP: 192.168.0.71 12 years 3 months ago - 12 years 3 months ago #6386 by Rossi
ok, now also i add successfully png with transparent background, but app crash frequently at this function
Code:
-(bool)IsFinished { if( m_cache ) return [m_cache Stat] == 1; if( m_thumb ) return [m_thumb Stat] == 1; return true; }
in PDFVPage on
Code:
return [m_cache Stat] == 1;
with EXEC_BAD_ACCESS error
Last edit: 12 years 3 months ago by Abdikayrov.
More
IP: 192.168.0.130 12 years 3 months ago #6401 by emanuele
It crashes when you add a bitmap? or in another case?

There is a specific sequence to get this crash?
More
IP: 192.168.0.71 12 years 3 months ago #6402 by Rossi
Yes, it crash when i add the bitmap. I add the bitmap the page begin the render but crash before showing the image.
More
IP: 192.168.0.71 12 years 3 months ago #6403 by radaee
i think you shall add bitmap first, then, invoke vRenderSync to re-render the page.
More
IP: 192.168.0.71 12 years 3 months ago - 12 years 3 months ago #6407 by Rossi
I not find vRenderSync function.
This is my code:
Code:
CGImageRef ref = [[UIImage imageNamed:@"emoticon"] CGImage]; PDFMatrix *mat = [vpage CreateMatrix]; BOOL result = [page addAnnotBitmap:mat.handle :ref :YES :&rect]; Matrix_destroy(mat.handle); [m_view vRenderPage:pos.pageno]; [self refresh];
Last edit: 12 years 3 months ago by Abdikayrov.
Time to create page: 0.381 seconds
Powered by Kunena Forum