Programming :: GTK - Load Image Or Display In Window

Jan 11, 2010

I am trying to write a small gtk+-2 program to display whatever image it is given and I was wondering if anyone out there has done something similar. I am not too familiar with writing programs for gtk and its been a while since I've fiddled with C. I went over the tutorial for gtk and it seams pretty easy to get a window to display, but I do not see anything that refers to loading an image or displaying it in the window. I am wondering if this can be done purely with gtk or will I need to use some type of image library like imlib2?

View 3 Replies


ADVERTISEMENT

Programming :: First Image Will Display On The Page, And When A User Puts Their Cursor Over It, Then It Will Load Image 2?

Nov 24, 2010

I have just exported 3 png files out of gimp for a html document I'm working on right now, and they are all almost the same, except I need each to load when the user does something. So the first image will display on the page, and when a user puts their cursor over it, then it will load image 2. When they press it, it loads image 3.

View 1 Replies View Related

Programming :: Load And Show Image In Web Page?

Feb 27, 2010

I did a perl/cgi script for uploading image. The script works, image is iploaded in upload directory, but the problem is: How can I to load and show image in web page?

View 12 Replies View Related

Programming :: Can't Get Xlib Window To Display / What To Do?

Mar 12, 2009

I am having trouble writing an Xlib application that displays a window. The most frustrating thing is that I've written applications like this before, and never had any problems. For some reason I cannot get this program to work properly. I'm running KDE and when I launch the program, a "button" for the application will appear on the application panel, however, no window will display. It is possible to right click on the panel button and select the Close item which will successfully close the window.

The following is source code that when built will exhibit the behaviour described above code...

View 10 Replies View Related

Programming :: GTK+ Externally (to Main Window) Display A Men?

Feb 16, 2010

Usually the menu bar, and menus, are displayed within the applications main window. With a small screen this obviously wastes space so my idea is to reserve a location, small square space probably on a corner, on the screen that when clicked it will pop out the current selected applications menu, allow selection, and then disappear again. The application itself would look fullscreen, or if windowed will still not have a menu bar but access available via the "square."

Likewise instead of the usual task bar and "applications/places/system" menus (ala, ubuntu) a second square would be reserved which would pop-out and show the running tasks, followed by the menus, and allow selection, then disappear. Is this possible with GTK+ as it stands, as I'm guessing that by default everything must be contained within an applications main window?

Although having said that, gimp allows the tool windows to be external to the edited document, so perhaps it would be possible to make the menu bar into a toolbox? I guess the difficult problem would be how to make the currently selected applications "tool square" be on top when there could be multiple applications running. The "tool square" and "task/menu square" could be transparent (maybe just an outline) so that although always there they wouldn't hide any underlying windows/programs/etc.

Basically the idea is to get rid of wasted screen, in ubuntu (on gtk/gnome) a minimum of 5 "bars" is wasted screen real-estate:- 1, Running aplications: 2, Ubuntu's main menu bar: 3, Applications status bar: 4, Applications menu bar: 5, Applications description (min/max/close) bar. Take all the above and replace it with two clickable, potentially invisible, squares say where the default "hide all windows" and "deleted trashcan" icons currently reside.

View 3 Replies View Related

Programming :: Creating Image Viewer Window Using Python And GTK Widgets

Jul 7, 2010

I'm a total newbie in Linux and only have limited experience of programming - in Hypercard, Javascript and some Python on the Mac platform. Now I want to get started with high-level programming and scripting on Ubuntu 10.04. The project I have in mind is fairly simple: I want to create an image viewer window that I can bring up on a RAW image file in Nautilus - with the help of dcraw, to inspect the image at 100% without going into a separate application.

The viewer should have a button that if clicked, would then convert the file to a TIFF, again using dcraw. That's it, that's all there is to it. My initial impression is that I should be able to achieve this using Python and GTK widgets. Am I right? How can I find the commands and structures I will need to work with?

View 8 Replies View Related

Programming :: Send Password Window To User Display?

Jul 6, 2011

How can i send a password window to display?

View 2 Replies View Related

Programming :: PHP Booleans - Print Draw The First Image From A Function Then Hide The Rest Of The Images Using 'display: None'

Jul 29, 2010

I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:

[Code]....

View 1 Replies View Related

Ubuntu :: Conky Can't Load The Image

Apr 28, 2011

I have one error with a skin conky. When i execute a conky it display a error

Code:

rm: no se puede borrar �/home/said/.tonky/notify/oncal�: No existe el fichero o el directorio
rm: no se puede borrar �/home/said/.tonky/notify/oncpu�: No existe el fichero o el directorio
rm: no se puede borrar �/home/said/.tonky/notify/onmem�: No existe el fichero o el directorio

[code]....

I think, that error can be because i have a smaller display.

View 1 Replies View Related

Ubuntu :: Could Not Load Image 'P1070908.JPG'

Aug 3, 2011

I just popped in a CD for my friend filled with JPEG images to put online, and I get an error message for each picture. This is what pops up:

Code:
Could not load image 'P1070908.JPG'.
Error interpreting JPEG image file (Not a JPEG file: starts with 0x62 0x6f)

View 9 Replies View Related

Ubuntu :: Load An Image Off The Internet?

Sep 1, 2011

Is it possible to build an image on a cd that can allow me to load an image of an internet on the computer. without installing it. Like a dummy terminal.

View 7 Replies View Related

Software :: Format Sys.cfg To Load Specified Iso Image?

Apr 4, 2010

Situation: I have to install multiple SUSE linux installs onto blade servers without cdroms.

Goal: Create a bootable USB drive that contains multiple DVD Isos. Upon boot, a menu is displayed that allows the choice of several OS installs.

Problem: I just can't figure out how to format syslinux.cfg to load my specified iso image. Here is semi sudo code for what I want to do with my config:

sudo syslinux config
label <any label>
menu label install SLES 10 x86
kernel linux
append <path_to_iso=/sles10/dvd1_x86.iso> autoyast=10x86.xml
code....

Googling tells you quite a bit about syslinux.cfg, but it doesn't reallyt tell you how to load specific file for installation.

View 6 Replies View Related

General :: Display An Image Using C Code?

Jan 18, 2010

i want to display an image using c program on linux how it is done?

View 1 Replies View Related

General :: Display An Image Fullscreen In C?

Jan 22, 2011

which will show a png from GIMP on the screen in fullscreen mode. I was using GIMP and there is an option to save my image as an .h or .c file. I tried .h and it saves it as some kind of very large variable. I want to call this from my own C program and display it on the screen.

View 1 Replies View Related

General :: Image Viewer With Transparent Window?

Aug 17, 2011

I would like to display a fully opaque image (e.g. PNG RGB8) on the desktop in an image viewer - but such that I can set the window (showing the image) to be, say, 50% transparent (so I could see through and compare with other windows below). It would be even better if the viewer just shows a "panel" instead of a "window" (i.e. I'd prefer just the image shown, possibly with a border - instead of a full blown window with menubar, titlebar etc).

I'm aware that in Compiz, it should be possible to run a plugin, and have any window you want transparent - but I was hoping for a solution (viewer) that would not be Compiz-specific (and even more preferred, if it is neither Gnome nor KDE specific - but I'm not sure that is possible).

View 1 Replies View Related

Debian Multimedia :: Wbar - To Load Image ?

Jul 27, 2010

I installed 1.3.3 + wbar dfsg2-1 it works almost correctly

I have a small problem on the second line of the file dot.wbar line is as follows

When I run the command "wbar - config dot.wbar" I get the message

With the parameter:

View 3 Replies View Related

Debian Multimedia :: Cant Load PNG Image Extensions

Nov 3, 2010

i cant load PNG image extensions..i dont know what to do.when i pressed the button printscreen of my keyboard the system shows me an error dialog:"Unable to save screenshot to disk:The type 'png' is not suported."what is the problem??i try to rebuild libpng and libjpeg, but i cant solve the problem.

View 3 Replies View Related

Fedora :: Load An Image And It Is Completely Unusable?

Jun 27, 2011

Can anyone else confirm that Inkscape (from the FC15 distribution repo) is running as slow as a wet wig?

I have a fast machine (8 core 3.4ghz, 4GB RAM, 64bit FC15) everything else graphics wise is smooth and sexy but with inkscape try and zoom in with NO image loaded and it tic, tic, tic, jerky movements etc

Load an image and it is completely unusable, and has actually crashed my machine a couple of times when i was trying to work with a 5MB SVG file

View 14 Replies View Related

Ubuntu :: Window Manager Sometimes Won't Load

Sep 1, 2010

Sometimes (one boot in five?) the Window Manager fails to load at start-up.I can force it to load with Compiz Fusion menu, but would really like ubuntu to load it properly at start-up.

View 9 Replies View Related

General :: Cron Job - Display A Jpg Image File?

Jul 25, 2009

I am a windows user and am trying to display a jpg image file on linux every x hours.In Windows, if I were to perform the same task, I would just give out the path to schtasks.exe and it would open the image in the default viewer,is the case same with linux as well? Do I just execute:

crontab now + 1 hour abc.jpg ? The linux is OpenSuse or Debian I guess.

View 2 Replies View Related

Fedora :: Enable Image Display In E-mails?

Jun 5, 2010

I use Evolution Mail and Calendar to receive and send e-mails, but it cannot display images(links?) that are embeded in the incoming e-mails. How to solve this problem?

View 5 Replies View Related

OpenSUSE :: Can't Make Conky To Display Any Image

Jun 6, 2010

Recently I succesfully installed conky. I managed to get a lot of things work with more or less effort but I can't make conky to display any image.Images path and permissions had been checked. Imlib2 support too but conky won't display a thing.

View 4 Replies View Related

General :: How To Grab Data And Display Image

Nov 4, 2010

'I am attempting to grab roughly 40 pieces of data that is a combination of 0 and 1 flags from mysql. based off of the 0 or 1... either pictA or pictB will be displayed. How to evaluate my code? I believe the logic is incorrect.

PHP Code:
$status = 'mysql -u username -ppassword -h x.x.x.x -e 'SELECT help FROM table' database';
declare -A ARRAY
for ((i=1; i=$status; i++));
do
echo ${ARRAY[$(i)]}
done
if [${ARRAY[]} = 1];
then echo "<img src='pictA.gif'>";
else [${ARRAY[]} = 0];
echo "<img src='pictB.gif'>";
fi

View 4 Replies View Related

Ubuntu :: Change Login Window Not Background Image

Aug 21, 2010

so i got some themes following these instructions [URL]... is there a way i can get my login window (not the background image) to look like it does in one of these images [URL]...

View 6 Replies View Related

Ubuntu :: Create A Hard Drive Image That Just Load Up?

Jun 23, 2011

I'm overall realitively new to Ubuntu 11.0.4 and I had some questions regarding this operating system. I just wanted to inform everyone, that I'm attempting to make a transition, from a life time Windows user and a current Windows 7 Ultimate user, to being a Ubuntu user.

I am becoming fedup with Windows 7, because i dislike how much system resources, it requires to run, and in addition I'm skeptical about Windows security. I had a lot of bad experiences with the Windows updates as well, so I was kind of alienated, as one can imagine. What I did like about Windows 7, is how easy it was, to configure the user group policies. I was wondering if you were able to do that in Ubuntu latest release.

I also was wondering, if it were possible, to create a hard drive image, that I can just load up, if I ever needed to reformat, like I did in Windows 7.

View 3 Replies View Related

Ubuntu :: Change Window Min / Max Display?

Jul 5, 2010

I would like to change the taskbar Minimized/Maximized view. Right now the active windows are protruding, i would like the opposite effect.

View 8 Replies View Related

Fedora Installation :: 10 Fails To Load X Window?

Mar 22, 2009

I was trying to install fedora 10 onto my new computer, with the full dvd. my new computer has 2G ram, Radeon 4670 and a Gigabyte motherboard. after i started up the installation, while it saying "loading anacoda...." the line" X window fail to load. Back to text mode." So should i continue with the installation? because i fear that after i installed the fedora 10 onto my computer, i have to use it in text mode

View 6 Replies View Related

Fedora :: F14 Does Not Load After Update - No Login Window

May 9, 2011

I have a problem with my Fedora 14, only on Fedora 15. Been out of my home for a week, when I arrived home and turned the PC on first thing I made was the update, as usual. But when I reboot or shutdown the PC and when I go to do login, the Fedora get's stuck and doesn't show me the login window to insert my login. Made a clean install and it worked fine, until I made the last updates and it became again, stuck before the login window appears. Is there any update making this? What could be? It must be some update, because when I made the clean install it worked fine, and with the first update also worked fine.

View 2 Replies View Related

Ubuntu :: Login Window Doesn't Load

Aug 27, 2010

I installed Ubuntu 10.04 as a second OS on my XP machine (on a second partition). It worked fine for about a month, but this time when I booted up in Ubuntu, it showed the Ubuntu loading screen, then the desktop background picture and mouse, but it did not load the login window. I have no idea how to fix this, because most problems are about the entire X server not working, whereas my screen works.

I tried pressing Ctrl + Alt + F1, stopping gdm, then running startx, which mostly worked, except the date and time status bar addons had an error loading and the task bar did not have any workspace icons on it. I would like to login the normal way to get back to my good old Ubuntu desktop, but the window does not want to load. I have restarted the computer multiple times, with the same result.

View 1 Replies View Related

General :: Image Bigger Than Display - Wallpaper Change

Aug 31, 2011

I am looking for a tool that can resize images and display them on the root window of an X11 display at a specific coordinates. I can use display from iagemagick like so display -window root -geometry '-0-0' -resize '1920x1080>' IMG.png But cannot use it since it does not display on the right root window -- pseudo transparency in urxvt shows the wrong image as shown here. Ideally, I would like to resize any image bigger than my display. Does anyone know of a too that can do the following: Resize the image if it is bigger than some size (aka the display size). Set the images top appear at specific screen coordinates.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved