Questions tagged [layer]

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

If the question relates to Geographic Information Systems, consider whether the question is better suited to the GIS Stack Exchange.

2129 questions
12
votes
4 answers

Difference between presentation layer and user-interface

What is the difference between a presentation layer and an user-interface?
Rookian
  • 19,841
  • 28
  • 110
  • 180
12
votes
3 answers

Circular UIView (with cornerRadius) without Blended Layer

I'm trying to get the circle below to have an opaque solid white color where the cornerRadius cuts out the UIView. UIView *circle = [[UIView alloc] initWithFrame:CGRectMake(i * (todaySize + rightMargin), 0, smallSize,…
user2336702
  • 343
  • 4
  • 12
11
votes
2 answers

How to use multiple inputs in Tensorflow 2.x Keras Custom Layer?

I'm trying to use multiple inputs in custom layers in Tensorflow-Keras. Usage can be anything, right now it is defined as multiplying the mask with the image. I've search SO and the only answer I could find was for TF 1.x so it didn't do any…
Salih F. Canpolat
  • 204
  • 2
  • 3
  • 14
11
votes
4 answers

Stack divs with different heights

I want to stack divs with different heights but same width within a div container.. from top to bottom going right. Problem now is with divs that are short.. gives a ugly gap to the div above. I've added a small sketch with what i want to…
user681061
  • 255
  • 5
  • 16
11
votes
2 answers

Google maps GeoJSON- toggle marker layers?

I have some GeoJSON returned from a call to a PostGIS database. I'd like to be able to add a marker for each feature, and be able to toggle different types of marker/feature. Currently I'm using JavaScript to generate a marker for each feature,…
user814425
  • 605
  • 8
  • 19
11
votes
3 answers

Trying to delay CABasicAnimation position and opacity of layer by 3 seconds but

I am trying to delay the animation of layer's opacity and position by 3 seconds using setBeginTime. I have called the layer boxLayer. The animation is going well however during the first 3 seconds (the layer is not supposed to show yet) the layer is…
Armand
  • 435
  • 1
  • 11
  • 23
10
votes
1 answer

Applying transformed image layer to renderInContext:

Background I am using Erica Saduns Cookbook example from Chapter 8, Example 14 — Resize and Rotate to obviously resize and rotate a UIImageView. VIew hierarchy 1.) striped background view. 2.) the interactive view which can be resize and…
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
10
votes
4 answers

AWS Cloud9: Referencing Lambda Layer Locally

I have set-up a Cloud9 environment to develop and test lambda functions. To make the environment "cleaner" I have opted to use lambda layers to specify the function's dependencies. By doing this, I have removed the dependency folders from the…
user11146052
10
votes
3 answers

understanding output shape of keras Conv2DTranspose

I am having a hard time understanding the output shape of keras.layers.Conv2DTranspose Here is the prototype: keras.layers.Conv2DTranspose( filters, kernel_size, strides=(1, 1), padding='valid', output_padding=None, …
Julien REINAULD
  • 599
  • 2
  • 5
  • 18
10
votes
2 answers

Setting gradient both on Navigation Bar and Status bar

I'm trying to change the background of a navigation bar by creating a layer and adding it as a sublayer to the navigation bar. However, this is only affecting the navigation bar. I wan't it to affect the whole top of the screen. Code included: let…
PablodeAcero
  • 399
  • 8
  • 20
10
votes
5 answers

Drawing gradient over image in ios

How to create gradient colour look like following image programatically.
user2823044
  • 315
  • 2
  • 5
  • 14
10
votes
1 answer

Photoshop scripting: changing text of a text layer

Because I don't have enough time to learn all about PS-Scripting, I was wondering, if you may help me. It's very simple. I want to have a JS-Script, which changes the Text of the Top Layer. For example: The Text is "#005", the script should add 1,…
user2019559
10
votes
3 answers

How to determine the geom type of each layer of a ggplot2 object?

As part of an effort to remove a specific geom from a plot I've already created (SO link here), I'd like to dynamically determine the geom type of each layer of a ggplot2 object. Assuming I don't know the order in which I added layers, is there a…
Erik Shilts
  • 4,389
  • 2
  • 26
  • 51
10
votes
4 answers

Reordering UIView subviews

In my app I am trying bring a subview to front, then put it back to its original layer position later. The code should be pretty simple: To bring the subview to front (inside my custom UIView class): [self.superview bringSubviewToFront:self]; Easy.…
eric.mitchell
  • 8,817
  • 12
  • 54
  • 92
10
votes
4 answers

Display Outline on Layer in photoshop

This must be a very noob question, but via googling I am getting different answers. I just want that via layer panel when I click on any layer, there must be selection outline between all the layers, that which layer is selected. I have used Adobe…
TechCare99
  • 1,763
  • 6
  • 24
  • 33