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
6
votes
3 answers

View border Color not changing

I have a view I make border with this run time attributes: The problem is layer.borderColor when I set borderColor my border is gone but when I don't set border Color I have a black border which I don't want any ideas?
user7155952
6
votes
3 answers

how to darken a UIImageView

I need to darken a UIImageView when it gets touched, almost exactly like icons on the springboard (home screen). Should I be added UIView with a 0.5 alpha and black background. This seems clumsy. Should I be using Layers or something (CALayers).
Jonathan.
  • 53,997
  • 54
  • 186
  • 290
6
votes
4 answers

How to cover a 9-PATCH-PNG entirely?

I try to implement a hover effect (effect when button is pressed) through putting a semi transparent PNG file on top of the button background and the button icon. Unfortunatly the button background file is a 9-PATCH-PNG which causes some trouble…
OneWorld
  • 17,512
  • 21
  • 86
  • 136
6
votes
5 answers

How to change base layer using JS and leaflet layers control

I have to modify existing application, where leaflet layers control is used - I need to display one of the base layers when the map is initiated. Is there a way, how to call some function from the layers control from JS script - something like…
user3523426
  • 836
  • 3
  • 11
  • 26
6
votes
0 answers

Features added to vector layer are not visible

I am trying to add new features to a vector layer. I do it with this code: layer.getSource().addFeatures(features); Where layer is an instance of ol.vector.Layer and features is an array of ol.Feature The features are added but they are not…
Marcin Roguski
  • 729
  • 2
  • 7
  • 16
6
votes
1 answer

Create a watermark (pdf Optional Content) that shows only when printing using PDFBox

I have come across many examples that use the PDFBox Layer Utility's appendFormAsLayer method as shown below: /** * Places the given form over the existing content of the indicated page (like an overlay). * The form is enveloped in a marked…
Scott G
  • 61
  • 3
6
votes
1 answer

Swift - UIView frame is not equal to UIView.layer.frame

I want to draw a UIView layer but when I do it the layer frame is not equal(In Preview) to UIView frame. class ViewController: UIViewController { var graphHeight:CGFloat = 100 var graphSize:CGFloat! override func viewDidLoad() { …
Bogdan Bogdanov
  • 882
  • 11
  • 36
  • 79
6
votes
1 answer

Removing shadow from subviews

I have a UIView mainView, I've added 4 buttons in each corners as subviews. I added shadow to my mainView like this mainView.layer.shadowColor = [[UIColor blackColor] CGColor]; mainView.view.layer.shadowOffset =…
Vervatovskis
  • 2,277
  • 5
  • 29
  • 46
6
votes
2 answers

BLL, DAL, OBJ and 3 layer architecture

My question is about 3 layer architecture. My project is briefly something like the below, however what annoyed me is after I insert a new column inside my database, I have to update those all fields except for the BLL. In the presentation layer, I…
user1865552
6
votes
2 answers

Take a screenshot of an UIView where its subviews are camera sessions

I'm building an app where I need to take a screenshot of a view whose subviews are camera sessions (AVFoundation sessions). I've tried this code: CGRect rect = [self.containerView…
pmerino
  • 5,900
  • 11
  • 57
  • 76
6
votes
6 answers

expose a referenced type (class) without need for additional reference

I have a layered system of .dlls between my application, where the lowest level has a class that provides certain functionality - an instance of this class can be received through a GetClass() function and then I can access its properties…
Andreas Reiff
  • 7,961
  • 10
  • 50
  • 104
6
votes
2 answers

Where to put application state?

Where in the code do I best put object creation (stateful objects) and where not? In what layers? For example, I once put an object reference inside a Hibernate DAO class and I was told that this was incorrect because DAO classes are not supposed to…
MrStack
  • 455
  • 2
  • 7
  • 22
6
votes
3 answers

Canvas (Kinetic.JS): multiple layers vs single layer approach

Can anyone explain why (indeed, if) it's best to abstract the major parts of a canvas game to different layers when using something like Kinetic? It of course feels like you should, and so far I have been: one layer for the background, one for the…
Mitya
  • 33,629
  • 9
  • 60
  • 107
6
votes
1 answer

3-layer architecture - passing data between layers

Trying to implement 3-layer (not: tier, I just want to separate my project logically, on one machine) architecture I've found so many different approaches that I'm confused, what's the best way (if there's any) to make that in WinForms app. Now I…
mj82
  • 5,193
  • 7
  • 31
  • 39
6
votes
2 answers

Get sublayers from group layer with Python in Gimp

I have an XCD file with a nested layers structure: image front-layer content-layer content-layer-name-1 content-layer-name-2 content-layer-name-3 back-layer I open the file with image =…
tbicr
  • 24,790
  • 12
  • 81
  • 106