How can i create .jpg file programatically
-
Two steps: 1. Draw your text to a bitmap. 2. Compress it to JPEG.
It is a crappy thing, but it's life -^ Carlo Pallini
-
Not yet. I was mainly looking for some sample code that can do the trick. Can you please provide some pointers to do the same?
PankajB wrote:
Can you please provide some pointers to do the same?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Not yet. I was mainly looking for some sample code that can do the trick. Can you please provide some pointers to do the same?
Have you searched the internet and CP? Usually, nobody feels like offering any help to people who are not willing to help themselves. Not to mention you're asking for "the code" to do something that's extremely trivial. Like I said, in my other reply to you, there are two steps to it. Go ahead, give it a try and come back with a specific question if at all.
It is a crappy thing, but it's life -^ Carlo Pallini
-
I want to do this programatically. I think you have suggested using some tool may be mspaint. If you are talking about through the cose itself, then please provide more details in raegrd to the sugegsted steps. Thanks.
I knew you wanted to do it programmatically. Have a look at Drawing lines, shapes, or text on bitmaps[^] and then you'll be left with compressing a bitmap to JPEG. A search must bring up an example, if you ask me.
It is a crappy thing, but it's life -^ Carlo Pallini
-
Hi there. I want to create jpg file programmatically. Lets say I have some text "Hello", Now I want to create a jpg file that contains this text. Thanks PanB
-
-
Hi there. I want to create jpg file programmatically. Lets say I have some text "Hello", Now I want to create a jpg file that contains this text. Thanks PanB
If you like to see more info about jpg format see CXImage article on the codeproject it has helpful info for you.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Hi there. I want to create jpg file programmatically. Lets say I have some text "Hello", Now I want to create a jpg file that contains this text. Thanks PanB
Let me google your question for you. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Let me google your question for you. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hi there. I want to create jpg file programmatically. Lets say I have some text "Hello", Now I want to create a jpg file that contains this text. Thanks PanB