How to Scale an image axis in windows phone app? - windows-phone

I am using 4 images in grid as shown.Now I want to scaled the corresponding image on tap to size of the grid in the mention arrow direction for e.g
image2 size(width and height) = grid(dimension) on tap and image2 scaled to its left as mention in diagram.

Can you check this
Resizing Images in Windows Phone 7

Related

Draw bounding box after image has been resized react native

I am trying to draw a bounding box around the monkey's face in this image. The coordinates I want to use are the following:
64,111
347,111,
64,304,
347,304
I am displaying the image with resizeMode = contain which results in the bounding box being misplaced and the wrong size.
I think the top-left of the rectangle should be at 64,111 using position absolute and the width and height should just be the difference between the points (width = 283 and height = 193). I know that since the image is not being displayed at its full height and width I need to scale down the bounding box accordingly. However, I can't figure out what the image's final size is after it has been resized. How can I figure this out in order to display my bounding box correctly?
Here is my code so far: https://snack.expo.dev/#melampus123/forlorn-raisins

Apply Image in Buttons

As A Begineer I've made a Puzzle game and it's working fine in Iphone Simulators.
But problem occurred when I run it in bigger Screen like IPad Air 2.All the picture aren't fitting perfectly in the buttons
(Note that Images are applied on buttons not in the Background of
buttons)
As image size not fit to given size of button, may be due to size concern of aspect fit property of imageview of button. You can try to scale image proportionally to size of imageview of button and get desire result.
You can refer to this link for scale image as proportionally to desired size.
scale Image in an UIButton to AspectFit?

Resize height of picture and extend width

i have some picture which is 675x503. I would like to make more width on it and let's say to 1024 and in height to 400. How to do that without cutting my image and keep quality? I just would like to have this image on my website top. I got photoshop 6. I tried with Image->image size but its not what i need.
If you don't want to cut the picture at all, this will distort the image due to different height and width ratios. If this is not an issue, you could simply hit ctrl(or cmd)+t when the layer with the picture is selected. It will let you resize and rotate the entire image. There is also an option in the Image -> Image Size menu called "Bicubic Sharper", found in the drop-down list at the bottom of the menu(Photoshop CS6). It's meant for image reduction and should also solve your problem.

Draw Larger and Smaller UIImageView size when scrolling in iOS

I have an app of photo catalog on my iPhone.
This app shows three images on screen with scrollview.
I want to enlarge/shrink the image size when I am scrolling.
I want to expand the image size when the image is centered.
And draw the image smaller when scrolled away from center to right/left.
I think this behaviour needs to developed in scrollViewDidScroll.
Do you know how to do this effect?
so you want a Coverflow ,
iCarousel may be the best control for it
take a look https://github.com/nicklockwood/iCarousel

iOS loss of image quality

This is the case:
I have an image. In the projects browser it looks good.
/but when I 'load' it in one of my controls the edges get rather blurry. And I'm not resizing it or anything. Why is this?
The image, unloaded:
The image when loaded in a control:
As you can see the corners get rather blurry/streched. Why?
It happened to me in the past.
Most of the time the problem is that the dimensions of the image are different from the dimensions of the controller.
Check you controller size with:
NSLog(#"controller size = %#",NSStringFromRect(your_controller.rect));
And see if it the image size fits.
I've also had this before and as #shannoga said if the dimensions of the view are different to the image it will auto stretch it.
Are you loading the image into an ImageView? if so the imageView.Mode property defaults to Scale To Fill. If you set the mode to Top, Left or Center it wont stretch the image.