Questions tagged [background]

Background typically refers to the rendering behind a container element's contents - usually on a web page, Windows form or other UI presentation medium.

In CSS, the background property is a shorthand property for setting the individual background property values in a single place in the style sheet. This includes the image, color, tiling and position.

In Windows Presentation Foundation (WPF), the background attribute can be defined for any visual UI object. It should be noted that WPF applications use a background thread for handling rendering and repainting.

Desktop applications such as those written in .NET and Java may have colors or images used to fill the window of a particular frame or form.

For information about background threading, see the multithreading wiki.

14810 questions
67
votes
2 answers

ImageMagick extend canvas with transparent background

convert input.png -extent 100x100 -gravity center -background white output.png If the input is 50x50 the surrounding background is white. Can I somehow set this to transparent without declaring any color within input as transparent?
Toby
  • 2,720
  • 5
  • 29
  • 46
66
votes
5 answers

How to call getResources() from a class which has no context?

In my application I have many classes and activities. Droid is a class which does not have context. Mygame is a class which extends SurfaceView and implements SurfaceHolder.Callback. I am creating an object of Droid in mygame class and setting the…
andro-girl
  • 7,989
  • 22
  • 71
  • 94
66
votes
4 answers

How to position background image in bottom right corner? (CSS)

I have a 500x500 px image which is set as a background image on my website (as background-image of ) But I need this image to be located in a bottom right corner of the webpage. How can I achieve this? (better with css method) Thank You.
Ilja
  • 44,142
  • 92
  • 275
  • 498
66
votes
1 answer

iOS : Use of HKObserverQuery's background update completionHandler

HKObserverQuery has the following method that supports receiving updates in the background: - initWithSampleType:predicate:updateHandler: The updateHandler has a completionHandler which has the following documentation: This block is passed to the…
ospr
  • 1,650
  • 2
  • 17
  • 21
64
votes
5 answers

How do I change the background color of aptana studio?

How do I change the black background of the Aptana IDE (or the entire theme) to a different one, like blue?
Jerry Robinson
  • 651
  • 1
  • 5
  • 3
64
votes
12 answers

UITableView background Image

I'am trying to setup a png image as my tableview's background. With the following code all are fine! But only on iPhone Simulator. If I try to run the application on an iPhone device the background of tableview remains white (or clear). Do you thing…
user730153
  • 791
  • 2
  • 7
  • 11
63
votes
7 answers

mongodb status of index creation job

I'm using MongoDB and have a collection with roughly 75 million records. I have added a compound index on two "fields" by using the following command: db.my_collection.ensureIndex({"data.items.text":1, "created_at":1},{background:true}). Two days…
Yair Avgar
  • 631
  • 1
  • 5
  • 5
63
votes
6 answers

How can I tint a background image with CSS?

I have a background image set up through CSS. html { background-image: url('../img/cello.jpg'); background-attachment: fixed; background-size: 100%; } I plan on having a different background image for different pages of the website: so it's…
user1623053
  • 633
  • 1
  • 5
  • 5
62
votes
1 answer

svg fill color not working with hex colors

Trying to create an svg background pattern, but: When I am not using fill it is ok, when using color name like: color: red; it's ok, but if using hex colors, nothing shows up. here are the codes: OK: background: url("data:image/svg+xml;utf8,
Botond Vajna
  • 1,295
  • 1
  • 10
  • 22
61
votes
3 answers

Transparent Iframe Body

I need to have a (crossdomain) iframe with dynamic width and height. My question is, Can I create an iframe with 100% size and a transparent background that will show the parent of this iframe, behind it ? Can I attach a css property or a…
user345311
  • 621
  • 1
  • 5
  • 5
59
votes
30 answers

Changing background color of selected cell?

Does anyone know how to change the background color of a cell using UITableViewCell, for each selected cell? I created this UITableViewCell inside the code for TableView.
sg.
  • 637
  • 1
  • 6
  • 5
59
votes
1 answer

Android background image memory usage

The project I'm working on uses several "high resolution" backgrounds (note the quotes). Just to get into situation, one of them is a 640x935 1.19M PNG file. As far as I know, even if Android decompresses images into memory as raw data this should…
h4lc0n
  • 2,730
  • 5
  • 29
  • 41
58
votes
8 answers

Silent push notifications only delivered if device is charging and/or app is foreground

I have implemented silent push notifications but I have noticed some strange behaviour. The silent push notifications are handled via: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo…
58
votes
5 answers

How to show full height background image?

I have a photo type (not landscape) background image with 979px width by 1200px height. I would like to set it to float left and show 100% full image height fixed, without the need to scroll up/down (regardless of content length). This is my CSS…
hangee
  • 719
  • 2
  • 9
  • 12
57
votes
4 answers

video as site background? HTML 5

I want to use a video as a background instead of an image that automatically stretches to the whole screen (background). I would also like to rotate videos and images.. so that there is a random video/image displayed in any order. It would also be…
Roland
  • 1,908
  • 4
  • 21
  • 34