General :: Display An Image Using C Code?
Jan 18, 2010i want to display an image using c program on linux how it is done?
View 1 Repliesi want to display an image using c program on linux how it is done?
View 1 RepliesI 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 Relatedwhich 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 RelatedI 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.
'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
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 RelatedI'm using this command: wget --convert-links -np --wait=20 --limit-rate=20K -m -k -p -U Mozilla -c [URL]
I can only use konqueror (asus eeepc 701) to completely view kneetest.html . The image taimoshan-front-qtr.jpg does not show, but if I right click and save, I can view the jpg. I was able to see this jpg earlier in the day, but not now. I've wget'd the site about 5 or 6 times in a day and sometimes I'll miss 2 images. I've also tried without the -U Mozilla option. BTW: Is there a way to get Mozilla to read files from wget?
I need to show a static image with the logo of our department while Debian boots. Is there any easy way or tool to do this? (Any parameter of the kernel maybe?) It doesn't have to be anything fancy (like a progress bar)... just a plain an simple image.
I've seen many bootsplash projects..but most of them are broken. I tried splashy (which is available on the repo), but by the time it loads, my system is already booted, so I don't really like it. note that I don't have any Xorg server installed.
I'm working on a project to have our company logo image display on the screen during bootup. Our platform is an embedded Linux device running on a custom configured linux kernel 2.6.38.2. Our development distro is Ubuntu 10.04. I am currently trying to get fbsplash to work on our device with no luck so far.
View 1 Replies View RelatedI am trying to find a way to get/read the C source code from a JFFS2 image file. All I have is the jffs2 file and nothing else. I was looking for some kind of converter or reader that would allow me to do this. I know very little about Linux. I need to give the source code to a developer to save time on a new version/redevelopment of the original application.
View 3 Replies View RelatedI'm running Fedora x86_64. I need to setup a virtual machine to do some work on ARM platform. Thus, I've installed QEMU.
Code:
qemu --version
QEMU emulator version 0.13.0 (qemu-kvm-0.13.0), Copyright (c) 2003-2008 Fabrice Bellard
Then, I have dowloaded an ISO image of Debian 6.0 armel.Following instructions on official wiki, I have first created an empty disk image,
Code:
qemu-img create -f qcow debian-armel.img 650M
then I have attempted to boot from ISO image;
Code:
qemu -m 512 -hda debian-armel.img -cdrom debian-6.0.1a-armel-CD-1.iso -boot d
Boot process hangs with the message:
Code:
Booting from cdrom...
639 medium detected
Boot failed: Could not read from CDROM (code 0004)
No bootable device
link refers to Fedora 12, but it seems still unresolved...
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 RelatedRecently 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 RelatedI 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 View RelatedI am needing help with two things:
Does anyone have sample 'c' code for a browser basic function, get an address and display the contents? Want to learn bout how it's done.
Second, can anyone point me to the source for "webcam", a webcam capture program? I spent a day on the internet trying to find a home page or source listing.
Sorry if these are "dumbassed" questions, but I am new back to Linux. Been out of the Unix world since 1989.
I have a script that will change my desktop image to display all of my network IP address. I need to call this script whenever a change in the network occurs. Example, if I disconnect from one network and then connect to another network and get a new IP address.
View 1 Replies View RelatedI am using redhat linux4 and qt4.6. I have created an application in qt, which i want to link to frame buffer using C programme and display it onto the xserver or/and on the hawkboard.
View 1 Replies View RelatedI used to have a working vlc. Then I added debian-multimedia to my sources.list and installed several other movie players (kplayer, kaffeine,). As a result, my vlc no longer works: When I run it to display a movie (any movie, I tried several) I get the sound OK, but there is no image, and the window stays small (like when playing a sound file). How do I get vlc to display movies again?
View 3 Replies View RelatedI have just installed a GeForce 8400 GS card in my Ubuntu 10.10 with the Nvidia proprietary driver( version number: 260.19.21).
The Display is connected to the desktop through an HDMI cable and the resolution is 1920 x 1080 .
After some trouble(Black Screens), almost everything is ok.
The only problem is the screen that is extrapolating the Display Boundaries.
I have tried to set it through the nvidia configuration program without success.
Is there any parameter in Xorg.conf that could resolve this issue?
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]....
When i ssh to server using -X, i always confuse about which display number i should export. It seems to me sometimes the display number has been used by something, so what i can do is only
export DISPLAY=localhost:0 && xclock
export DISPLAY=localhost:1 && xclock
export DISPLAY=localhost:2 && xclock
[code]....
I have the following scenario that doesn't seem to work normally. I have a windows 7 pc from which I am using putty to connect to my other linux servers (all running redhat 5 and 6). So here is the scenario that works and one that does not work. And I'm trying to figure out the one that does not work. Scenario that works:
From windows 7 (putty) I ssh into Linux_Server_1.
echo $DISPLAY
localhost:10.0
I run xclock and I see it pop up on my windows 7 pc. I am using xming on windows 7 to help me populate the display from linux to windows. One that does not work:
From windows 7 (putty) I ssh into Linux_Server_1. Then from Linux_Server_1 I ssh into Linux_Server_2.
echo $DISPLAY
<no output>
I try to setup $DISPLAY with localhost:10.0 or 0.0 or even my windows 7 pc ip address:0.0 ....etc Then when I try to run xclock I doesn't work.
I get these error messages: Error: Can't open display: <ip of display>
Also as a side note all our Linux servers are sitting on one subnet. My pc is sitting on another subnet. I use vpn to connect to the subnet where the servers sit from my pc.
I need to rewrite the selenium java code into its equivalent php code.
View 5 Replies View Relatedfor reset Facebook password,facebook send a code to e-mail,this code can be sniffed by sniff software?
View 2 Replies View RelatedWhen playing dvd's, vob files and wmv files, the image comes with high contrast colors ,very intense red/green/blue. very dark too. I have vlc 1.1.4 installed, using ubuntu 10.10, libdvdcss2 installed. for the rest of the video formats it seems to work fine. any ideas on what should I start debugging?
View 5 Replies View RelatedI have a Canon iR3570/iR4570 PXL, and installed the driver CQue 1.0 TCP/IP Queue from Canon webpage.
The problem:
- if i try to print an OpenOffice or LibreOffice Calc with an image and text, the image is not printed (the space is blank).
- if i try to print an OpenOffice or LibreOffice Calc with just an image, it's printed great.
- if i try to print an OpenOffice or LibreOffice Impress, the images are not printed but the text is printed great.
[Code]..
I was given a forensic Image which I now know is a DD image of the drive (Vista) and am trying to mount the image or extract the image to another drive. I'm not sure of the extention type or if the image is a partition or the entire drive. I think it is the entire drive.
Is it possible to mount a DD image to a device. If I can't do that I just want to extract the files to run some programs against the drive. Can I view the files under Ubuntu or do I have to remove the drive and stick it into a Vista computer.
I purchased a second drive today and was hoping the command line would be something simple.
Or am I on the wrong track, should I be doing this all in a windows environment. The reason I picked ubuntu was because of the reporting tools.
I would like to change my startup image (usplash image). For that i change /lib/plymouth/themes/ubuntu-logo/ubuntu_logo.png and /lib/plymouth/themes/ubuntu-logo/ubuntu_logo16.png. Then the splash screen of shutdown screen changes .But booting screen doesnot change.
View 2 Replies View Relatedcan I change the ECC code for a block of a file stored on a flash drive by any means ? of a file stored on a HDD (though I don't think there would be a difference between the two)Maybe , through some hardware interrupts or anything like that?Also if possible I need the solution to be in C/C++.
View 3 Replies View RelatedJust installed Fedora 12 on a customers server which has a 64 bit CPU but the kernel installed is the 32 bit version.
How can i get yum to install the 64 bit code?