|
-
Mar 6th, 2017, 08:10 AM
#41
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?
-
Mar 6th, 2017, 08:52 AM
#42
Thread Starter
PowerPoster
Re: How to change the specified color in the picture to another color?
 Originally Posted by Arnoutdv
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.
-
Mar 6th, 2017, 08:57 AM
#43
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?
-
Mar 6th, 2017, 09:06 AM
#44
Re: How to change the specified color in the picture to another color?
 Originally Posted by Arnoutdv
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.)
-
Mar 6th, 2017, 09:26 AM
#45
Thread Starter
PowerPoster
Re: How to change the specified color in the picture to another color?
 Originally Posted by Arnoutdv
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.
-
Mar 6th, 2017, 09:31 AM
#46
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.
-
Mar 6th, 2017, 09:37 AM
#47
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
-
Mar 6th, 2017, 09:49 AM
#48
Thread Starter
PowerPoster
Re: How to change the specified color in the picture to another color?
 Originally Posted by DEXWERX
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.
-
Mar 6th, 2017, 09:53 AM
#49
Thread Starter
PowerPoster
Re: How to change the specified color in the picture to another color?
 Originally Posted by Arnoutdv
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.
-
Mar 6th, 2017, 10:07 AM
#50
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.
-
Mar 6th, 2017, 11:32 AM
#51
Hyperactive Member
Re: How to change the specified color in the picture to another color?
 Originally Posted by dreammanor
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
-
Mar 8th, 2017, 05:59 AM
#52
Thread Starter
PowerPoster
Re: How to change the specified color in the picture to another color?
 Originally Posted by I Love VB6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|