Page 2 of 2 FirstFirst 12
Results 41 to 52 of 52

Thread: How to change the specified color in the picture to another color?

  1. #41
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,735

    Re: How to change the specified color in the picture to another color?

    Maybe a silly question, but why not use Word documents instead of RTF?

  2. #42

    Thread Starter
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: How to change the specified color in the picture to another color?

    Quote Originally Posted by Arnoutdv View Post
    Like others have asked before, can you please explain what the purpose is of your application and what workflow you have chosen?
    Maybe you are trying to fix something which can be solved in a complete different way.
    Thanks for your reply. I need to store some information into the database. Some of this information is manually entered, and some are copied from MS-Word or Web-Page. Some pictures are product design drawings, can not be distorted.

  3. #43
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,735

    Re: How to change the specified color in the picture to another color?

    But you do everything via the RTB control.
    Why not store the originals of pictures/documents?

  4. #44
    PowerPoster
    Join Date
    Jun 2015
    Posts
    2,229

    Re: How to change the specified color in the picture to another color?

    Quote Originally Posted by Arnoutdv View Post
    But you do everything via the RTB control.
    Why not store the originals of pictures/documents?
    you get out of here with that nonsense... this is a programming forum.


    (but seriously. storing original documents and files is how most "real" collaborative project management software works.)

  5. #45

    Thread Starter
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: How to change the specified color in the picture to another color?

    Quote Originally Posted by Arnoutdv View Post
    But you do everything via the RTB control.
    Why not store the originals of pictures/documents?
    In most cases, I just need to keep plain text data, but in a few cases, I also need to save some useful pictures. So I need to separate the text data and image data: all the text data is saved in a DB-Field, and the image data is selected so that only the useful pictures are saved in another DB-Field.

  6. #46
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,958

    Re: How to change the specified color in the picture to another color?

    Do you need the complexity of RTF for the information you are storing? Would something simpler like Markdown not suffice? MD wouldn't let you embed the images directly but it would certainly let you link to them if they existed in a file system or could have a valid URL generated for them.

  7. #47
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,735

    Re: How to change the specified color in the picture to another color?

    If you need plain text and image data then why store them in the RTB first?
    Just get the plain text and use the original image as used in the original document.

    If all you have is a hammer, everything looks like a nail

  8. #48

    Thread Starter
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: How to change the specified color in the picture to another color?

    Quote Originally Posted by DEXWERX View Post
    you get out of here with that nonsense... this is a programming forum.


    (but seriously. storing original documents and files is how most "real" collaborative project management software works.)
    Some customers have not installed MS Word on their computers, but they need to view and edit the data.

  9. #49

    Thread Starter
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: How to change the specified color in the picture to another color?

    Quote Originally Posted by Arnoutdv View Post
    If you need plain text and image data then why store them in the RTB first?
    Just get the plain text and use the original image as used in the original document.

    If all you have is a hammer, everything looks like a nail
    When I copy data from Ms Word to RTB, the picture is changed. Please see my post #16.
    Last edited by dreammanor; Mar 6th, 2017 at 09:58 AM.

  10. #50
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,735

    Re: How to change the specified color in the picture to another color?

    Then don't copy it to the RTB!
    Why do you insist on doing so.
    Just use the images from the document.

  11. #51
    Hyperactive Member
    Join Date
    Oct 2016
    Posts
    369

    Re: How to change the specified color in the picture to another color?

    Quote Originally Posted by dreammanor View Post
    For the first image in the sample.doc, when you copy the image only into RTB, the color of the picture does not change, but the lines appear jagged. When you copy both the picture and the top of the text, the color of the picture will change.
    I guess you didn't read my post correctly. I pasted your images (all three) from MS-WORD into RTB and they are exactly the same

  12. #52

    Thread Starter
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: How to change the specified color in the picture to another color?

    Quote Originally Posted by I Love VB6 View Post
    I guess you didn't read my post correctly. I pasted your images (all three) from MS-WORD into RTB and they are exactly the same
    I'm sorry I did not explain it clearly. I mean: when you copy pictures and text at the same time, the color of some pictures will change, and some pictures appear jagged. If you only copy the pictures, then the color of the pictures has not changed, but the pictures are still jagged.

    If your computer is not the case, please tell me your Windows version and RichTextBox version, or send a screenshot that pictures and text without distortion, thank you.

    In addition, I merged the question into another post:
    http://www.vbforums.com/showthread.p...35#post5147035

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width