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
4
votes
2 answers

jQuery hover each different background color

How to hover every different background-color? These code set the background-color is working: var dlcabgColors = [ 'rgb(233, 147, 26)', 'rgb(22, 145, 190)', 'rgb(22, 107, 162)' , 'rgb(27, 54, 71)' ]; var i = 0; $('.abc').each(function() { …
MotoTony
  • 61
  • 9
4
votes
3 answers

how to deal with the task in progress

In my C# program there is a "Login" function. When user presses on the button - program uses given login/pas info to login on a certain website using POST url and to save cookies. The webpage after login is then further processed in my program.…
Alex
  • 4,607
  • 9
  • 61
  • 99
4
votes
0 answers

iOS app background upload trigger for wifi connection

I have an app that uploads its captured media to the cloud as its captured: photos, video, audio. HD videos are large and we want the originals stored. Any video over 50mb gives an alert that can be overridden and waits for a wifi connection. It…
thereeda
  • 41
  • 3
4
votes
1 answer

Android Open WebView In Background Service And Capture Screen Shot

I'm trying to open URL in a WebView from a background service then take a screenshot of the hidden WebView. Funnily enough it is not working! Is this possible? Some code snippets: webView.setVisibility(View.INVISIBLE); ... final Picture picture =…
twiz911
  • 634
  • 1
  • 9
  • 18
4
votes
4 answers

Changing the background color of a paragraph in JTextPane (Java Swing)

Is it possible to change the background color of a paragraph in Java Swing? I tried to set it using the setParagraphAttributes method (code below) but doesn't seem to work. StyledDocument doc = textPanel.getStyledDocument(); Style style =…
Sudar
  • 18,954
  • 30
  • 85
  • 131
4
votes
3 answers

JavaScript Button Style change on click

I have put together this piece of JavaScript, but I am struggling with the code as I'm a newbie. What I want to do is when a button is clicked it will change the background color opacity. The code below does this, but now I want the button to be…
Adrian M.
  • 7,183
  • 15
  • 46
  • 54
4
votes
1 answer

Background image panning with background-size: cover?

I'm currently panning the background image of my website when moving with the mouse with following code $('body').mousemove(function(e){ var mousePosX = 50 + (e.pageX/$(window).width())*25; var mousePosY = 50 +…
sigug
  • 1,159
  • 1
  • 11
  • 17
4
votes
2 answers

CSS multiple backgrounds work inconsistently

I'm getting a weird issue trying to use multiple backgrounds. The basic effect I want to have is a gradient background on the edges and a transparent background in the middle. Here's the really basic code: background: transparent,…
redbmk
  • 4,687
  • 3
  • 25
  • 49
4
votes
1 answer

what's the correct shorthand syntax when using multiple css background images/gradients?

I need to attach multiple backgrounds to an element via CSS and I can't use :before/:after. I'm wondering what the correct syntax to use multiple CSS background image is. There is a bunch of suggested ways I found, like here or here, but I can get…
frequent
  • 27,643
  • 59
  • 181
  • 333
4
votes
2 answers

How to design the workflow in a C# WinForms application?

this might be a very general question - but I'm quite new to C#. Can you please explain this to me or give me a good link to an example or explanation. I want to design a C# Winform application. The application has a main form, which collects user…
CSharper
  • 298
  • 2
  • 13
4
votes
2 answers

Background color of JTextField doesn't become 'grayed out' when disabled after the background color had been changed before

Normally when you use setEditable(false) or setEnabled(false), the background/foreground color of the JTextField becomes 'grayed out'. However, if a background color had previously been set using setBackground(color) (for example to white), then the…
dialer
  • 4,348
  • 6
  • 33
  • 56
4
votes
1 answer

Is it possible to define XferMode in a layer-list?

I was wandering if is there a way to specify several layers in a layer-list XML file and tell each layer to blend according to a specific XferMode from PorterDUff. It would be very useful to generate composite backgrounds.
ilomambo
  • 8,290
  • 12
  • 57
  • 106
4
votes
4 answers

Position one full-document background image over another

I'm aware that similar questions have been asked over and over, but I have yet to come across a solution that actually works for me. Picture the following problem. Situation: The body has a non-fixed background image that repeats both vertically…
Martin Denk
  • 554
  • 3
  • 14
4
votes
1 answer

How to remove white background color from Bitmap

I want to remove the white background color in a bitmap Bitmap capcha = new Bitmap("C:/image.jpg"); pictureBox1.Image = capcha; but I want to display in my pictureBox1 just the image without white that exists in the background
Ti Amo Laky
  • 755
  • 2
  • 8
  • 21