- Posts: 56
- Thank you received: 1
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Added JPEG not appearing
IP: 71.36.119.126
5 years 2 months ago #15533
by arlomedia
Replied by arlomedia on topic Added JPEG not appearing
Great, now the JPEG appears! And I can use this matrix to show it full-page:
Can I also use the matrix to rotate the image? I'm using this matrix to rotate annotations 90 degrees:
But when I use that in the content.GSSetMatrix function above, the image doesn't appear. Even with this default matrix that doesn't do any rotation, the image doesn't appear:
How do you recommend adding rotation to the code above?
Code:
Matrix(pageWidth.toFloat(), pageHeight.toFloat(), 0f, 0f)
Can I also use the matrix to rotate the image? I'm using this matrix to rotate annotations 90 degrees:
Code:
Matrix(0f, 1f, -1f, 0f, pageHeight.toFloat(), 0f)
But when I use that in the content.GSSetMatrix function above, the image doesn't appear. Even with this default matrix that doesn't do any rotation, the image doesn't appear:
Code:
Matrix(1f, 0f, 0f, 1f, 0f, 0f)
How do you recommend adding rotation to the code above?
IP: 111.196.244.79
5 years 2 months ago #15534
by radaee
Replied by radaee on topic Added JPEG not appearing
the code:
can only display 1 pixel on PDF page, you shall passs
Code:
Matrix(0f, 1f, -1f, 0f, pageHeight.toFloat(), 0f)
Code:
Matrix(0f, height, -width, 0f, pageHeight.toFloat(), 0f)
IP: 71.36.119.126
5 years 2 months ago #15535
by arlomedia
Replied by arlomedia on topic Added JPEG not appearing
Oh, got it. For the record, this rotated the image 90 degrees counterclockwise:
And this rotated 90 degrees clockwise:
I have everything working as intended now. Thanks!
Code:
Matrix(0f, height, -width, 0f, width, 0f)
And this rotated 90 degrees clockwise:
Code:
Matrix(0f, -height, width, 0f, 0f, height)
I have everything working as intended now. Thanks!
Time to create page: 0.361 seconds