Is it possible to change an attribute of image using VB?

hello everyone!,
I just want to ask if it's possible to add an attribute to a image using Visual basic. and the image will save as jpeg file together with the add attribute to the properties?
by the way, I am john. freshman college student from phil. thanks in advanced
chow..

Hi acamar,
Below is the error I've encounter modify the codes under exifwork
a = WindowsApplication.exifwork.Rational cannot be converted tp 1-dimensional array of windowsApplication.exifwork.rational
Public
Function ToRational(ByVal
value As
Double)
As Rational()
Dim N
As
Double = value
Dim D
As
Double = 0
Dim S
As
Double = 1
If N = N \ 1
Then
Return
New Rational(Convert.ToInt32(N), 1) <--a
End
If
If N < 0
Then
            N *= -1
            S = -1
End
If
Do
Until N / 1 = N \ 1
            N *= 10
            D += 1      
Loop
        D = 10 ^ D
Dim divisor
As
Integer = gcd(N, D)
        N /= divisor
        D /= divisor
        Convert.ToInt32(N)
Dim R
As
New Rational(Convert.ToInt32(N), Convert.ToInt32(D))
Return R <--a
End
Function
also in the function setpropertyrational3 the method(PutInt32 is not declare).. what is the declaration type of that and where do i put the declaration?
We're close.. i really appreciated your Help.. :)
Jonel

Similar Messages

  • Is it possible to extract the text and images using PHP

    Hi friends,
    Is it possible to extract the text and images using PHP, in the same order as it is in the PDF?
    Else is it possible extract the same as XML using PHP, or ASP
    I googled it but its in vain, any help is appreciated.
    Thanks in advance.

    Dear Mike,
    Thanks for your quick reply,
    I mean is it possible to parse the PDF line by line using the PHP.
    I extracted the whole text but couldn't the images. Since the PDF's images are decoded using various methods like DCTDecode, JPXDecode, etc.
    The text is decoded with FlateDecode, which i breaked using a function in PHP.
    Thanks,

  • Is it possibly to change file attributes for files in the Program Files directory?

    Hi,
    I wonder if it is possible to change file time atributes for a file that is in the same folder as the exe file inside the Program File folder. I have the following code that gives System Error Code 5.
    SHGetFolderPath(0, CSIDL_PROGRAM_FILES, 0, SHGFP_TYPE_CURRENT, programpath);
    PathAppend (programpath, TEXT("Testprogram/gnsh.dat"));
    hFile = CreateFile(programpath, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
    If this had worked, I would for instance have done like this
    GetSystemTime(&st); SystemTimeToFileTime(&st, &ft);
    timeresult = SetFileTime(hFile2, NULL, NULL, &ft);
    I am programming in C with WIndows Api.
    Thanks in advance for answer.
    Best regards

    Hi Vahmat,
    System error code 5 :
    ERROR_ACCESS_DENIED
    5 (0x5)
    Access is denied.
    I have tested your code on my side, it will get a error code 5 if you have no permission to access a file. Please try to run VS as a administrator and rebuild your project, after this , you code works well on my side.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to change the automatically set image on the new iMovie Theater title screen?

    I made a few movies on the new iMovies 2013 then uploaded into iTheater. I love the software and its ease of use. However, I noticed iTheater automatically sets the title image. Similar to youtube, iTheater probably uses the video mid point image as default. Is it possible to change the set image on iTheater?

    Unfortunately, no.

  • Is it possible to change the attributes of lines in Line Charts?

    I always think there are no dumb questions but this one actually might qualify because for some reason I'm unable to find a way to change the line color and thickness in Line and Line & Bar Charts. Web Intelligence must be intelligent enough to let me do this, right?
    Thnx,
    David

    Thank you!
    So this is again another example of the Web Intelligence product not achieving it's goal, and to me that is simplifying the creation of reports that can turn data into valuable information on which people can make better, more informed decisions. Shame! And I've noticed that this is the case for far more features of Web Intelligence. Please, SAP BusinessObjects, stop including marketing only related functionalities and build a better reporting tool!
    As to your answer regarding the palette, this is true but is not a generic solution as this goes for all line graphs (and bar, pie charts?). It is not very user friendly as well!
    But thanks for the quick response and confirmation.
    I'll keep the post open a little longer to see if anyone else has comments or similar feelings!
    David

  • Possible to Change the Plug-Ins Folder Used by Safari?

    I'm trying to set up Firefox with no plug-ins and Safari with plugins, to switch back and forth as needed.
    Both want to use the same Library/Internet Plugins folder.
    Any way to alter the plug-ins directory for either of them?
    Is a Unix command going to come to my rescue to set Safari's plug-ins path?

    I would expect both applications to call the same system command to locate the plugins directory. It's not going to be as straightforward as a string of text in a preference file.
    The only way I can see this working is to move the plugins in/out of the plugins direcotory before you launch each app. Of course, that may be problematic if you want to run both browsers at the same time.
    If you want to run both browsers at once, one thing that might work is changing the plugins directory mid-stream. Most apps will only check for plugins during startup (which is why you usually need to reboot to activate new plugins). Therefore you may be able to move your plugins out of the directory, launch FireFox, move the plugins back and launch Safari.
    In this setup Firefox should see no plugins and Safari sees them all. A script could automate this process if it works for you.

  • Is it possible to change pernr of table VBPA using BAPI_SALESORDER_CHANGE ?

    Dear All,
    I want to change the Personal Number field of Table VBPA using BAPI BAPI_SALESORDER_CHANGE.
    I am trying, but its not working fine.
    Some one who has used the BAPI in same scenario, please come up.
    I think there is some problem in the parameters passed to the BAPI.
    Thanking You All.

    Dear Madhu,
    Thanks for replying,
    pernr field exists in "partnerchanges" tables parameter of the BAPI.
    In this tables parameter , the fields P_NUMB_NEW and P_NUMB_OLD exists for pernr.
    I think, I should properly pass value in UPDATEFLAG filed of the same paramter, but I do not know the exact value that I need to pass, I am passing 'X', but its not working.
    I am getting  FB call: insufficient parameters error in BAPI Return.

  • Is it possible to change the theme placeholder images in iPhoto '11

    Can the placeholder images be replaced or removed in iPhoto 11 card projects?  Simply, one of the images reminds my wife and I of a very distressing  event in our lives.  We'd prefer to not see it every time we make a greeting card when we're trying to celebrate something more joyful.  Obviously, there's nothing wrong with the images per se.  This is very personal.

    iPhoto.app in your Applications Folder. Right Click on it and select 'Show Package Contents'
    It opens a Finder window at Contents. Inside that Folder find Resources. Inside there find the bothersome image and replace it with one that’s the same name, size and format.
    Back up first.
    Regards
    TD

  • Is it possible to load a non-standard image using some Java API?

    Hi,
    My "problem" is:
    1. I have an image called "mediterranean_sea.IMG" (non-standard image format)
    2. I need to process it (histogram, palette, etc).
    3. I'm wondering if it is possible to load this image an process it using some Java API.
    4. I've tried to do this using JAI but I think that this API only works with TIFF, PNG, JPEG, etc.
    Any idea?
    Thanks in advance,
    Roger

    [url http://forum.java.sun.com/thread.jsp?thread=468188&forum=31]Cross-post

  • Picture-in-Picture : How to change border on an image used

    I added a still image as the Picture-in-Picture and it appears with a border. There isn't a border option in the Inspector window brought up via Clip Adjustments, whereas there would be if this was a movie clip so added.
    How to adjust this border?
    Thanks

    OK. I see the solution now. I had a theme selected to add opening titles. The border set on the pic-in-pic image looked the same colour as that theme. So I set the theme to No Theme and the image's border went away.

  • How to change report attributes like heading, sort etc programmatically

    Some of the columns from a classic reports using pl/sql as region source should be sortable. Is it possible to change this attribute (sort = yes) using JavaScript or APEX API?
    David
    Edited by: david on Sep 6, 2011 11:56 PM

    There is something I don't understand here. Why do you need to point at the sxd? What is changing? Like I mentioned before. If the contents of the xsd change, all the report will do is - at best - drop the changed fields so you will be missing data. Perhaps some of the following will help;
    [Crystal Reports Guide To ADO.NET|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio .NET Reporting Off ADO.NET Datasets|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23?quicklink=index&overridelayout=true] (page 332 on).
    Ludek

  • How to change the attributes of an XML file

    hi peeps 'ope you can help me here i need to change the attributes of an xml file, i parse it first using a DOM parser but i cant find a way to change the attributes in the XML file, setAttribute() works only at runtime and doesn't change the attribute in the file itself. I can't find a method that will answer my question. I've searched through the forum and found similar threads....they say in order to write and change the attribute i must use the write() method of the XmlDocument class defined in com.sun.xml.tree.XmlDocument. But, i found another thread, and it says that com.sun.xml.tree.XmlDocument is not safe to use and i should use org.apache.crimson.tree.XmlDocument.....i can't find the XmlDocument class and the API for this package so i really dont know where to start...hope you guys can help me! thnx

    thanks for responding roland....i already found the solution...i didn't use the XmlDocument class because i can't find any documents about it except for JAXP 1.0 here is my code snippet...i used the TransformerFactory and Transformer class to write
    import org.w3c.dom.*;
    import org.w3c.dom.traversal.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Document doc = null;
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    dbf.setValidating(false);
    doc = db.parse(fileGetFile); //this is the XML file
    n1 = (Node)doc.getDocumentElement();
    e1 = (Element) n1;
    NodeList nodeList = doc.getElementsByTagName ("File");
    //just insert whatever you want to do with the XML...parse it..set/change the attribute..etc....sample snippet below changes the attribute downloaded to "no"
    for(int iWriteFailed = 0; iWriteFailed <nodeList.getLength() ; iWriteFailed ++){     
    n2 = nodeList.item(iWriteFailed);
    e2 = (Element) n2;          
    e2.setAttribute("downloaded", "no");}
    try{
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    transformer.transform(new DOMSource(doc), new StreamResult ( new FileOutputStream ( fileGetFile) ) );}
    catch(Exception trans){}
    thanks for responding and keeping the information interchange alive here in the forum...
    Pau

  • How can i change the mouse pointer image?

    Hi friends!!
    It's possible to change the mouse pointer image in Swing?
    Thanks a lot.

    There's a setCursor() method on the frame component.

  • Track changes in business rule made using SOA composer

    Hi,
    I have business rules deployed on a server. Authorized user can change condition or any other thing in a business rule using soa composer. How can i track changes made in this business rule?
    i.e. I want to view the change and if possible who changes it.
    I am using SOA 11g
    Any help is appreciated
    Thanks

    Below document describes how to Monitor Decision Service Components and Engines.
    http://docs.oracle.com/cd/E29597_01/admin.1111/e10226/rules_mon.htm#CJAJJIJB

  • Is it possible to share a Mounted Blank Disk Image using WebDav?

    I am trying to find a good solution to give individuals the ability to change files in there hosted websites on the Mac Mini Server (10.6.4), but also having a limited folder size. I have seen a few post on using Blank Disk Image as the share folder. I have created the folder and I can see it contents using a WebDav client, but no matter what permissions I put, anytime I try to upload or delete a file from the image I get a 403 error, saying "Forbidden". I can get the WebDav to work on normal shared folders, so I am wondering if it is even possible to share a mounted blank image using WebDav?

    It seems if I make an MS-DOS(FAT) image, I can actually make changes to this image file using WebDav, but I cant see how to changer the permissions of the folder. All the methods I have tried do not actually seem to change the file permissions, they default to read and write for everyone.
    I am trying to figure out if I am trying to get something to work that is not even possible. I need to be able to limit the size of a folder, share it with specific groups/users in the Open Directory. It also has to be viewable on both Windows and Mac Systems. FTP does not seem to work, since it gives access to the root. I want to be able to have a student/student group post to a wiki, have a website for there project, but they should only have access to this image....
    Does anyone know if you can share a mounted image through WebDav, or if there is another way I can setup multiple folders and have websites point to this folder and give only selected users access to the folder for uploading and sharing files?
    Any guidance would be greatly appreciated

Maybe you are looking for

  • The Great iMac FireWire Mystery

    I'm stumped on this one and was wondering if anyone had any suggestions. A couple of months ago I replaced my mother's mirror door G4 (2x1GHz) with a 20" 2.16GHz Intel iMac (the last of the all-white iMacs). Her G4 had an 80GB and a 60GB internal har

  • Dynamic Expression

    Hello, My name is Alejandro Arango My problem is that i want to make expression dynamic, with that i mean the following: I want to be able to change an expression in a assign Statement from concat("var1") to concat("var2") and the expression is obtai

  • Songs added to iTunes not showing up properly.

    I recently added an entire album to my itunes library, but they do not show up anywhere but in the Songs list. The artist does not display under Artist, nor under Recently Added Playlist either. Also, the album does not show up under Albums. When I s

  • Project in Imovie 9 Only plays back still frames, wont play video

    Project in Imovie 9 Only plays back still frames I can see all the video clips but screen just goes black while going over the video. The video is still in the computer and has not been moved around. Also if i play the imported video on the "Event" b

  • License utilization on UCCX 7.0

    How can we check the agent license utilization (agent license in use at any time) in UCCX.