- Posts: 580
- Thank you received: 67
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
IP: 192.168.0.127
12 years 3 months ago #6379
by emanuele
Replied by emanuele on topic addAnnotBitmap doesn't work in 2.2.0
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
I also tried to add a png with transparent background with success
IP: 192.168.0.71
12 years 3 months ago - 12 years 3 months ago #6386
by Rossi
Replied by Rossi on topic addAnnotBitmap doesn't work in 2.2.0
ok, now also i add successfully png with transparent background, but app crash frequently at this function
in PDFVPage on
with EXEC_BAD_ACCESS error
Code:
-(bool)IsFinished
{
if( m_cache )
return [m_cache Stat] == 1;
if( m_thumb )
return [m_thumb Stat] == 1;
return true;
}
Code:
return [m_cache Stat] == 1;
Last edit: 12 years 3 months ago by Abdikayrov.
IP: 192.168.0.130
12 years 3 months ago #6401
by emanuele
Replied by emanuele on topic addAnnotBitmap doesn't work in 2.2.0
It crashes when you add a bitmap? or in another case?
There is a specific sequence to get this crash?
There is a specific sequence to get this crash?
IP: 192.168.0.71
12 years 3 months ago #6402
by Rossi
Replied by Rossi on topic addAnnotBitmap doesn't work in 2.2.0
Yes, it crash when i add the bitmap. I add the bitmap the page begin the render but crash before showing the image.
IP: 192.168.0.71
12 years 3 months ago #6403
by radaee
Replied by radaee on topic addAnnotBitmap doesn't work in 2.2.0
i think you shall add bitmap first, then, invoke vRenderSync to re-render the page.
IP: 192.168.0.71
12 years 3 months ago - 12 years 3 months ago #6407
by Rossi
Replied by Rossi on topic addAnnotBitmap doesn't work in 2.2.0
I not find vRenderSync function.
This is my code:
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