Is there a way to set and update the background image in blender 2.8 2d animation workspace? - blender

As the title suggests, Is there a way to set and update the background image in blender 2.8 2d animation workspace? I mean it's easy enough to add a background by dragging the image onto the viewport but then I can't seem to interact with it at all or change it to a different image.
Just to point out it's fairly easy to change background in a 3d project. What I'm asking for is updating the background image in a 2d project. I want this for a reference image.
Thanks!

2.80 no longer has "background images" like previous versions.
The Add->Image->Reference actually adds an empty that is set to display as an image. You can set the empties properties to adjust the display options which includes the image displayed, you can also move it around like any other object.
There is also now a background image settings for camera objects, this looks like the old background image settings, but is part of the camera settings and is only visible in camera view.

Related

How can I draw a banner or other adornment over an image using XAML in a Windows Store app?

Here's basically what I'm trying to accomplish:
I can get the image drawn and placed appropriately, but I'm at a loss for how to draw the banners. It's easy enough to put both elements in a Grid, but I can't figure out how to get the banner positioned/sized based on the aspect ration of the image that gets loaded.
If this was WPF I'm pretty sure I could just use an Adorner, but in WinRT I'm not sure how to proceed.
There is nothing kuje the Adorner in WinRT. Place the image and the banner into a grid, set the banner's vertipcal alignment to top, horizontal alignment to right.
If you want the banner to always be the same size, set Stretch to None. Otherwise hook into the Loaded event of the image where you can get the image dimensions and set the banner dimensions accordingly.

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!

Chaning the background color around a PDF in a UIWebView on Device

I'm using a webview to display a PDF.
The webview displays the PDF at it's actual size which is a little smaller than the size of the webvieww itself, revealing the scroll view underneath it.
I've tried setting the Webview to opaque and setting it's background color to another color, which works fine and dandy in the simulator, but fails to change the color on the device. On the device it changes the color of the background of the view behind the scroll view, this can be seen when the PDF is pulled all the way down.
I've also tried setting all the UIView's backgrounds, by iterating through the subviews but to no avail.
I've updated a diagram to help illustrate which area I'd like to color.
Uploaded Diagram
You really shouldn't mess around with UIWebView's internals.
They can change anytime and your code might just crash on the next version of iOS.
If you need more control about pdf display, you might wanna take a look at other possibilities to show pdf, like using the CGPDFDrawPage* functions. Of course they are pretty low-level and it's a lot of work required until you can get fast page display, zooming, etc all right.

Programmatically resizing and Scrolling NSView after application launch

I want to create a simple application which performs some calculations and then draws some images on view. I use NSBezierPath. Then I must resize the view and allow people scroll the finished picture. But i don't know how.If I also try to draw an image on an invisible part of canvas then it becomes invisible or isn't drawn (I couldn't know the future canvas size).
Check out the Apple sample code called BezierPathLab. I think that will get you started. There's lot of other sample code for Quartz 2D drawing too.
Being able to scroll and resize the view should be as simple as putting the view that you will be using to draw inside an NSScrollView.