Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add / Insert text to jpeg images with VBA

Status
Not open for further replies.

ssnnooww

Technical User
Mar 22, 2017
7
CA
Hello All, I am novice to VBA and really want to write a simple VBA code to achieve below objective.

ADD_TEXT_TO__JPEG_pudn0q.jpg


Your help is grateful.

Snow
 
Hi,

What application?

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
I am saving captures (screens) from CATIA to JPEG file format and want to put above text on the jpeg images before printing them out. I can not find commands/functions in CATIA to put text on the captures. So, I hope VBA can help me out.

Thank you

Ssnowww
 
You have VBA in Excel, Word, Power Point, and many other products/applications.
You did not answer Skip's question.

Have fun.

---- Andy

There is a great need for a sarcasm font.
 
Application....? you mean which software/application I used to create jpeg image from?

I use CATIA V5 which has VBA 6.5 inside it. I use VBA module inside CATIA to capture the screens (one by one) and those captures are saved to jpeg images with VBA code.

Is my explanation clear enough. If not, please let me know.

Regards

Snnno
 
I can not find commands/functions in CATIA to put text on the captures. So, I hope VBA can help me out.

VBA is a programmatic way to use features of a program that exist.

If features do not exist VBA can't cause them to exist.

That is to say, if you can't annotate a jpeg with CATIA manually then you can't do so with VBA.

There are many programs that can annotate jpeg files, and I'm sure at least one is VBA compatible.
 
the main software CATIA, where the images/captures are taken, does not have commands to annotate manually. However, the CATIA DMU Navigator (one of many modules inside CATIA licenses) has commands to annotate the captures (not jpeg). However, after I make captures inside main software CATIA and switch those captures in the CATIA DMU Navigator, the annotation commands in the CATIA DMU Navigator do not work.

I have googled up online and searched for help inside the CATIA itself but seems to be no help.

Do you have any idea?
PLease point me to a software or VBA that can add above text onto the jpeg images.

Thank you in advance.
 
PLease point me to a software or VBA that can add above text onto the jpeg images."

You may do that simply in Window's Paint 'by hand'. Use an icon with an "A": Text - insert text into the pictures, but there is no VBA there. :-(

Have fun.

---- Andy

There is a great need for a sarcasm font.
 
I really want to add text during making the captures inside CATIA via VBA code since I can make captures with VBA code inside CATIA software....this is sad.

I have seen a short executable code that my workplace does include the text on the captures/images but that code existed for years and I did not know who created the code. However, that code did not suit my need.
 
So what about the old code that does not suit your needs, does not suit your needs?

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
it printed the text and graphics on the captures so tiny that you can not read and recognize. So, I decide to make my own code, which get to the point of making jpeg images and stuck at adding text to the image.
 
You ought to be able to modify that code.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
Really love to have it but I do not have the source code, so I can not modify it. I only have the .exe file...I am thinking to decompile it to get the source code but do not know how since I am a computer programmer myself.

Do you have any idea.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top