resolution

Programatically trigger "detect displays."

Im trying to trigger the same thing that the system does when you click on Detect Displays in the Displays System Preferences pane. Is there a way to do this programmatically? My goal is to create a LaunchAgent that does this at login to reset the display resolution in case a user messes with it. ...

Get browser width and hide element depending on size?

Hello. Is it possible to detect what width a browser window is and hide an element on page if its lower than 1024? In JQuery perhaps? :-) ...

Dynamically creating a member ID card as pdf using PHP?

I need to code a PHP script that would let me generate a pdf file which displays a member ID card (something like a credit card used to identify oneself) at a certain resolution. Let me explain: I do have the basic blueprint of the card in png file format. The script needs to drop in a member's name and birthday along with a serial. So ...

Is there a way to determine android physical screen height in cm or inches?

I need to know exactly how big the screen is on the device in real units of length so I can calculate the acceleration due to gravity in pixels per millisecond. Is there a method somewhere in the Android API for this? ...

Unity register instance and resolve...

I've written a class that has some dependencies it resolves from the unity container. From my main class I create a new object MyObject myObject = new MyObject(); I register it with my Unity Container UContainer.RegisterInstance<MyObject>(myObject, new ExternallyControlledLifetimeManager()); the I create the type that needs this a...

Screen Resolution Problem In WPF ?

I'm gonna detect the resolution with the following code in WPF : double height = System.Windows.SystemParameters.PrimaryScreenHeight; double width = System.Windows.SystemParameters.PrimaryScreenWidth; Current resolution of my screen is 1920*1200, but height is 960.0 and width is 1536.0 !!! What's wrong with it ? Thanks in advance. ...

javascript - problem with positioning the "mask" area of a modal popup on different resolutions

The "mask" area I'm referring to is the dark background area behind the popup itself. Right now it looks perfectly centered up on a 1280X1024 resolution but any other resolution and the "mask" area is off-centered. It shows up pushed to the left of the screen. Here's the JS, if you need the markup layout let me know. $(document).ready...

Why is Android looking for QVGA resources in the wrong order mdpi > hdpi > ldpi?

Im trying to do some testing with a QVGA emulator and I find that it looks for an image resource in the mentioned order. drawable-mdpi 1st drawable-hdpi 2nd drawable-ldpi 3rd (it does get found only after i change the name of the image in the other two dirs for testing) I would expect it to be ldpi first. When running other emulators ...

Problem with position objects on different resolutions

Situation A Flex project exported as a Projector, showing fullscreen. The project has a background and several dots which each represent a "Location". These locations are fetched from an XML file and have their position set in percentages. The location in pixels is calculated (this works as it should) by the width and height of the Appli...

VC++ How do you "Fit to Screen" based on resolution?

How do you fit a project to the screen depending on it's resolution so all pictures and components involved increase or decrease in size and the difference of space between them is kept in consistent ratio with all resolutions? ...

Using PHP to recreate something similar to VistaPrint / CafePress / Zazzle. Any Ideas?

I am working on a website in which the client wishes to have users upload background images to a printable design, crop to size, add text. Do this to multiple pages then generate a pdf of the 'book' I am running into the following issues/questions and just need to see where I can start Are there any PHP developer packages that can do ...

set image size with respect to the screen resolution

hey guys, I am trying to build a website for myself.. I want to use an image as the header... I have made sure that my background will scale itself for any screen resolution... How do i make sure the image(header) will also scale it self according to the screen resolution... for example: my image is 350px int width and 130px in height....

button autoresize

Hi, Can anyone help me with the small buttons/icons used within the iphone apps. I am fairly new to the app world and trying to make some buttons(viz the tick box) for my app. I am not sure if we should start with a 50X50 and autoresize in the app or just have a 20X20 which exactly fits the space... Any help on this is appreciated.. ...

What is maximium resolution of a html page?

I have few question in this regard When you create an internet page, does the program automatically create 75pdi? Could we create 300DPI page could this be able communicate on internet ? What is maximum DPI resolution you can get on a Web page? ...

Test application lay-out for low resolution (winform)

Our firm is investigating in acquiring 22" monitors for our development team. The only current issue is that our users will be using smaller screens. We tried using a screen-grid tool (gridmove and nvidia's utils), but they are not entirely realistic. How do you test winform application layouts on a resolution lower then your screen's ...

Is there a standard webpage resolution for mobile phones?

Most designers use 1024x768 as a baseline for website development. That allows them to use css grid systems like 960 & blueprint to easily outline content. Is there similar baseline resolution for designing for mobile phones? The majority of users will be using iphone, android, and blackberry phones. ...

c++ function overload resolution regarding templated type and class hierarchy

A templated function gives me the convenience to operate on a variety of types: template<typename T> void destroy(T* obj) { delete obj; } But at some point I want to do some specialization on a class hierarchy: class Base { virtual void doSomething(); }; class Derived : public Base {}; void destroy(Base* obj) { obj->doSomethi...

Calculating pixel length of an image

Hello, May I know what are the ways to calculate the length of 1 pixel in centimeters? The images that I have are 640x480. I would like to compare 2 pixels at different places on the image and find the difference in distance. Thus I would need to find out what's the length of the pixel in centimeters. Thank you. ...

Getting the DirectShow VideoRender filter to respond to MediaType changes on its Input Pin?

Below is the code extract from my decoder transform filter which takes in data from my source filter which is taking RTP network data from an IP camera. The source filter, decode filter can dynamically respond to changes in the camera image dimensions since I need to handle resolution changes in the decode library. I've used the 'Rec...

ActionScript Screen Measurements

i'm attempting to use the Capabilities class to draw an accurately sized sprite on screen at exactly (2.5" x 5") regardless of the screen's resolution, but while i believe the code is correct, the size of the sprite is not accurate - when actually measuring it with a ruler. function inchesToPixels(inches:Number):uint { return Ma...