Jaspersoft studio canvas size or image size problem - jaspersoft-studio

I am trying to use image that would fit A4 size (21x29.7) inside studio.
Inside studio I have set size of the page to:
Imported image and inserted it into canvas also the same size:
Problem is that studio doesn't fit image to report area:
Why it doesn't correctly sets the image when I use fit both width and height and both sizes are the same?

Related

Why in the editor the ui looks fine in size but when building the game and running it's not?

This is a screenshot of the gameview in the editor when the game is not running.
It looks the same when running the game in the editor.
The rawimage size is set to W = 821 and H = 689
Same size of the texture render.
When running the game I'm choosing resolution 1920 x 1080 my highest resolution.
And graphics ultra.
This is a screenshot when running the game from the built file in full screen.
But the preview image not the same size on the height of the canvas in the editor it looks like it is the same height but after building and running it's not :
I want the preview image to be most to the right and cover the top and bottom edges only to keep the width as it is but when running from the built file the height and position not the same like in the editor.
if you are using UI you should configure canvas scaler correctly, I configure it as the attached image and its work right for me.
but if you are using sprites you should calculate the scale of it by code, at first calculate width and height of the screen and then width and height of sprite(with sprite renderer componetn) and calculate it.
Canvas scaler configuration

FPDF - image alignment

I've been trying to get an image to right align in a cell but have been unable to do so.
The image in question is a variable so I can't simply specify a coordinate as I can never know the width of the graphic. I've also tried the "R" option in a MultiCell but that appears to only work for text?
Thanks,
Jon
If you're loading an image, you could use php to capture the width of the image prior to drawing it on the page. Then simply subtract that width from the width of your .pdf page to 'fake' right alignment.

jquerytools overlay with dynamic size (width, height)

Using jquerytools' overlay plugin (the apple style).
The problem is that the background of the verlay (this static image), and its content are in fixed size.
How can the size of the overlay be dynamically changed according to content coming from ajax?
Also if you look at their own example at http://jquerytools.org/demos/overlay/external.html, you can see that there is a static size for the overlay.
What if the contents of the external page were less that the predefined size?
Another problem related is that the scroll bar is shown even if content's height is less than container's height.

Whats the image size to keep in list view of size 70x70 in android

I have the listview with each row have an image on left side and text on right side. I have the xml as shown in below.
<ImageView
android:id="#+id/ivMenuListImage"
android:layout_width="70dip"
android:layout_height="70dip"
android:layout_alignParentLeft="true"
android:scaleType="fitXY"
android:paddingLeft="2dp"
android:paddingTop="2dp"
android:paddingBottom="2dp"/>
I have given the Height and Width as 70x70 and the Images are in higher pixels than this. The list view is displaying well. Now i dont want to use hardcode value. So i gave width and height as wrapcontent and resized the images as 70x70. But the images are looking very blured and image quality is very poor. Please help me.
If your image does not have higher resolution you may need to set
android:scaleType="centerInside"
in order not to stretch the image.
Update:
If you wish the row to appear "larger" on higher dpi devices, first you 1) set all your views' layout_height to wrap_content 2)Create png images with fixed width/height pixels for different density drawable folders. For example, in drawable-mdpi all your png images should have fixed height 70 pixel, then all the rows will appear to be 70dp high in mdpi devices. If you create images of height 96 pixel in hdpi folder, then all hdpi devices will look wider with 96dp height.

Resize and Crop an image using a single convert() action

I'm currently looking to try and create a simple image uploader application which allows a user to load a picture from their desktop, select a crop area (using jcrop) in a specific aspect ratio, and then have filepicker.io crop to the defined dimensions and resize down appropriately.
The users will be uploading a picture of unknown dimensions, selecting an area that is in 10:13 ratio (width x height) and then filepicker needs to crop their image before resizing it to 100x130px.
Currently I have to perform 2 separate convert actions to crop and resize the image, which takes additional time and seems less efficient than it could be. Is there any way to combine crop and resize into a single action?
To get an idea of what I'm after, I would like this command to return an image 100x130 cropped to my ideal size:
/convert?crop=546,119,412,36&w=100&h=130
You can see a note on their documentation about the topic:
Crop and Resize: we strongly recommend against combining a resize (specifying width or height) with the crop functionality, as it has indeterminant effects depending on whether the crop is applied before or after the image is resized.
Source: https://developers.inkfilepicker.com/docs/web/#inkblob-images
It is possible and easy to do with Uploadcare
Here is an example:
Original image:
https://ucarecdn.com/c35d77e8-4b09-4040-ad36-a5b264f17094/CDN.png
Cropped and resized image, in one operation:
https://ucarecdn.com/c35d77e8-4b09-4040-ad36-a5b264f17094/-/crop/570x460/730,70/-/resize/200x150/Resized_CDN.png