User Settings for background image - vb.net

Can I use application settings to save a background image?
For example, I want to make an CPanel witch have an option for upload background image for program. I want that after save, that image to be background image.
I have 2 options for this but I don't know codes:
1. Upload image to resources and in code, I use setting name instead of photo name
2. After upload into CPanel, that image will overwritte the current image with same name. For exemple I have in Resources folder a photo named logo.png. With code, I put this photo to be background. After Upload an image, that image should overwritte current logo.png so then program will start, he will start with current logo.png.
But for second option I have an additional question. If I will put external image into PictureBox and set PictureBox Background to Stretch, that photo will be Stretch or will be with normal dimensions?

Related

How to resize/change the layout of a foreground image

I need an image to display and run a .gif, and therefore it must run in the foreground, but the image I am using from a resources folder is not the same size it will need to be when actually in the program. I can change the BackgroundImageLayout property, but that doesn't do anything to the image as it is Image and not BackgroundImage
Put simply, is there any way I can resize a foreground image without having to create a new copy of the image that's the right size?

Scale image size (Image control on an Access form)

I've done this before, but I'm working in 2010 now and it doesn't seem to be working.
I'm trying to make a thumbnail view of an image control. The pictures I store (text field, just linking to a directory) are large and have their own form to open and view them at resolution, but I want to display a small thumbnail of the picture.
I have an image control with the control source set to the image field of my record source. It changes fine with I navigate records, but it shows a zoomed "window" of the image instead of scaling the image down to a thumbnail like it worked in the past.
I've tried the "size to fit" option, thinking that would do the trick but it doesn't.
Is there a different property that I could use? I don't mind writing a little VBA for this either, but I figured it would have worked by just using the form controls.
I just tried this using a regular old Image control in Access 2010 and it worked fine for me when I changed its dimensions to something "thumbnail sized" (0.5" x 0.5") and set the Size Mode property to Zoom.

I want to make some area of image transparent. Image is set as background of an UIButton

I have an image with irregular shape. I set it as a background image of an UIButton.
Now, I use OBShapedButton library to enable touch only where image is non-transparent. But, for some reason if I click on transparent image area, when view appears in screen, then it responds to click, whereas it should not.
I made some area of image transparent using adobe cs4 photoshop. Now, I want to try making it transparent in xcode only. May be it helps.
To have an idea of image shape I am attaching a sample image.
Does anyone know how to do that?

Load larger image on tap of small image with animation

I'm trying to load a large version of an image in the centre of the user's screen when then tap on a smaller version of the image that's already on my view.
Ideally I want to do this using an animation to get to the new image like a vertical flip.
Also if there's a way to make the background look greyed out like it's not the foreground then that would be even better.
Here's an image of what I'm after, I'm at work at the moment so haven't got access to the actual code / images.
I'm a new user so can't add pictures. Click here if you want to see what I'm thinking.
Image
There is an KGmodal Example Exist in GitHUB hope that Might Help you.
You have to Change the content view and Add an Imageview Programatically (with required size ) in the content View.
Follow the below link: https://github.com/kgn/KGModal
For Fliping the image see the tutorial iphone Flip Image.
In the end I added the larger image on to begin with and set its alpha to 0, then added a gesture recognizer on the smaller image that animated the larger one and gradually changed its alpha to 1. The did the reverse on the large image. Don't know why I didn't think of that in the first place!

UITabBarItem and icon size

I am using UITabBarItem. If i set image, its not correctly displayed. Image is "zoomed", so I can see only top part of it. Image size is 60x60px.
I am setting image from xcodes XIB editor -> BarItem -> Image
Whats wrong with it ? According to Apple Doc, image should be 60x60 for Retina and even bigger images should be auto-scaled to fit viewing area.
When you are supplying a retina image you should name it with [name]#2x~iphone.png or [name]#2x~ipad.png. Then, in the IB you should put the name of the file without the whole suffix, so just [name] instead of [name]#2x~iphone.png. The image won't show up in the IB, but should be ok in the live app.
First, you have to make two icons, one of 30x30, and a second one 60x60 with "#2x" appended at the end of your filename.
Then bind the 30x30 icon to your UITabBarItem in XIB editor. Apple should select automatically the appropriate picture to display depending on the device it's running on.