Hi all,
I'm programming a Knowledge Base application (VB 2005, Framework 2.0).
I integrated a RichTextBox control so I can insert pictures. The problem now
is the size of the saved document ! Images are stored under the BMP format.
Is there a way to store the images under a smaller format (like JPEG) ?
If yes, how ? (I googled but couldn't find something really interesting).
If no, do you know of something that could handle this ?
Thanks,
Thierry
--
SPAM : Remove the 2 in my email. 13 1269
"Thierry" <th********@ifrance.comschrieb:
I'm programming a Knowledge Base application (VB 2005, Framework 2.0).
I integrated a RichTextBox control so I can insert pictures. The problem
now is the size of the saved document ! Images are stored under the BMP
format.
Is there a way to store the images under a smaller format (like JPEG) ?
If yes, how ? (I googled but couldn't find something really interesting).
If no, do you know of something that could handle this ?
Why not save the entries in HTML format and use the WebBrowser control to
display them?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Using HTML was also an idea and I was looking for a nice (free) HTML editor
that I could integrate within my app.
So far, I didn't find any ....
--
SPAM : Remove the 2 in my email.
"Herfried K. Wagner [MVP]" <hi***************@gmx.ata écrit dans le
message de news: %2***************@TK2MSFTNGP02.phx.gbl...
"Thierry" <th********@ifrance.comschrieb:
>I'm programming a Knowledge Base application (VB 2005, Framework 2.0). I integrated a RichTextBox control so I can insert pictures. The problem now is the size of the saved document ! Images are stored under the BMP format.
Is there a way to store the images under a smaller format (like JPEG) ? If yes, how ? (I googled but couldn't find something really interesting). If no, do you know of something that could handle this ?
Why not save the entries in HTML format and use the WebBrowser control to
display them?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Thierry,
Be aware that pictures are forever a problem in HTML, you have to embed them
in tables. http://www.vb-tips.com/dbpages.aspx?...d-da738cdc7c2c
Cor
"Thierry" <th********@ifrance.comschreef in bericht
news:%2****************@TK2MSFTNGP06.phx.gbl...
Using HTML was also an idea and I was looking for a nice (free) HTML
editor that I could integrate within my app.
So far, I didn't find any ....
--
SPAM : Remove the 2 in my email.
"Herfried K. Wagner [MVP]" <hi***************@gmx.ata écrit dans le
message de news: %2***************@TK2MSFTNGP02.phx.gbl...
>"Thierry" <th********@ifrance.comschrieb:
>>I'm programming a Knowledge Base application (VB 2005, Framework 2.0). I integrated a RichTextBox control so I can insert pictures. The problem now is the size of the saved document ! Images are stored under the BMP format.
Is there a way to store the images under a smaller format (like JPEG) ? If yes, how ? (I googled but couldn't find something really interesting). If no, do you know of something that could handle this ?
Why not save the entries in HTML format and use the WebBrowser control to display them?
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Cor Ligthert [MVP] schreef:
Thierry,
Be aware that pictures are forever a problem in HTML, you have to embed them
in tables.
http://www.vb-tips.com/dbpages.aspx?...d-da738cdc7c2c
Cor
Nonsense. You can display an image just fine without using tables.
--
Rinze van Huizen
C-Services Holland b.v
Yes, using the system.drawing.imaging namespace. Try something like
the following:
Dim bm as Bitmap = New Bitmap("c:\myimages\pic1.bmp")
bm.Save("c:\myimages\pic1.jpg", ImageFormat.Jpeg)
Bill
On Mar 12, 7:27 am, "Thierry" <thierry...@ifrance.comwrote:
Hi all,
I'm programming a Knowledge Base application (VB 2005, Framework 2.0).
I integrated a RichTextBox control so I can insert pictures. The problem now
is the size of the saved document ! Images are stored under the BMP format.
Is there a way to store the images under a smaller format (like JPEG) ?
If yes, how ? (I googled but couldn't find something really interesting).
If no, do you know of something that could handle this ?
Thanks,
Thierry
--
SPAM : Remove the 2 in my email.
Rinze,
Nonsense. You can display an image just fine without using tables
You say that I can do that, but I really don't know how, can you show me
how?.
(Nicely non fixed dynamicly on a page of course)
Cor
"C-Services Holland b.v." <cs*************@csh4u.nlschreef in bericht
news:bL*********************@zeelandnet.nl...
Cor Ligthert [MVP] schreef:
>Thierry,
Be aware that pictures are forever a problem in HTML, you have to embed them in tables.
http://www.vb-tips.com/dbpages.aspx?...d-da738cdc7c2c
Cor
Nonsense. You can display an image just fine without using tables.
--
Rinze van Huizen
C-Services Holland b.v
On Mar 12, 7:27 am, "Thierry" <thierry...@ifrance.comwrote:
Hi all,
Yes. Use the system.drawing.imaging namespace
Dim bm as Bitmap = New Bitmap("c:\mypictures\pic1.bmp")
bm.Save(c:\myimages\"pic1.jpg", ImageFormat.Jpeg)
I think there is also something that lets you change the image
compression ratio, but not sure about that.
I'm programming a Knowledge Base application (VB 2005, Framework 2.0).
I integrated a RichTextBox control so I can insert pictures. The problem now
is the size of the saved document ! Images are stored under the BMP format.
Is there a way to store the images under a smaller format (like JPEG) ?
If yes, how ? (I googled but couldn't find something really interesting).
If no, do you know of something that could handle this ?
Thanks,
Thierry
--
SPAM : Remove the 2 in my email.
Cor Ligthert [MVP] schreef:
Rinze,
>Nonsense. You can display an image just fine without using tables
You say that I can do that, but I really don't know how, can you show me
how?.
(Nicely non fixed dynamicly on a page of course)
Cor
Very very basic example:
<html>
<body>
<img src="urltoimage">
</body>
</html>
Ofcourse there's some doctype tags missing etc, but you get the point.
No tables in the code. You can even use DIV tags to move stuff around
the page.
--
Rinze van Huizen
C-Services Holland b.v
I think I didn't explain correctly :
I want to enable a user to type text (allowing text format of course),
insert pictures (from file and from the clipboard) into a control (like the
RichTextBox control).
The problem is that the RichTextBox saves the picture as a bitmap BMP field
and takes tons of megabytes.
After looking at RTF specification
( http://www.biblioscape.com/rtf15_spec.htm#Heading49) I noticed the field
<picttypeand I don't understand why the RichTextBox control doesn't keep
for original format. Is it a MS spec ?
Among other solutions, I looked :
- OpenXml but it needs framework 3.0
- Word document but it needs Word to be installed
- MTHML but I couldn't find source code for such a control (including
copy/paste from the clipboard)
Here's where I'm now ....
--
SPAM : Remove the 2 in my email.
<bi*********@yahoo.coma écrit dans le message de news: 11**********************@j27g2000cwj.googlegroups. com...
Yes, using the system.drawing.imaging namespace. Try something like
the following:
Dim bm as Bitmap = New Bitmap("c:\myimages\pic1.bmp")
bm.Save("c:\myimages\pic1.jpg", ImageFormat.Jpeg)
Bill
On Mar 12, 7:27 am, "Thierry" <thierry...@ifrance.comwrote:
>Hi all,
I'm programming a Knowledge Base application (VB 2005, Framework 2.0). I integrated a RichTextBox control so I can insert pictures. The problem now is the size of the saved document ! Images are stored under the BMP format.
Is there a way to store the images under a smaller format (like JPEG) ? If yes, how ? (I googled but couldn't find something really interesting). If no, do you know of something that could handle this ?
Thanks, Thierry -- SPAM : Remove the 2 in my email.
Rinze,
In your first example it is bound left to the top of the page.
In your Div sample you can change AFAIK the only the hight place.
And that is it,
You can of course use containers, as you see them than at the end as source,
than you are mostly looking again to tables. <Table><tr><td>
(If you look at the VB-Tips on our webpage, that is that a fixed part, what
can be placed everywhere and will be always there, but that cannot be the
meaning).
Cor
"C-Services Holland b.v." <cs*************@csh4u.nlschreef in bericht
news:0t*********************@zeelandnet.nl...
Cor Ligthert [MVP] schreef:
>Rinze,
>>Nonsense. You can display an image just fine without using tables
You say that I can do that, but I really don't know how, can you show me how?.
(Nicely non fixed dynamicly on a page of course)
Cor
Very very basic example:
<html>
<body>
<img src="urltoimage">
</body>
</html>
Ofcourse there's some doctype tags missing etc, but you get the point. No
tables in the code. You can even use DIV tags to move stuff around the
page.
--
Rinze van Huizen
C-Services Holland b.v
Cor Ligthert [MVP] schreef:
Rinze,
In your first example it is bound left to the top of the page.
In your Div sample you can change AFAIK the only the hight place.
And that is it,
You can of course use containers, as you see them than at the end as source,
than you are mostly looking again to tables. <Table><tr><td>
(If you look at the VB-Tips on our webpage, that is that a fixed part, what
can be placed everywhere and will be always there, but that cannot be the
meaning).
Cor
Cor,
I suggest you look into CSS. You can use that to layout your site
without using tables. It's also possible to position an image just using
the image tag, for example:
<img src="urltoimage" width="100" height="100" border="0"
style="position: absolute; top: 56px; right: 80px" />
Or create layers with the div tag and move them around the webpage.
There's so much you can do with CSS you really don't need tables
anymore. Benefit of this is that if you want to change your layout you
only have to change 1 file, the CSS file you include in your webpages.
example 3 columns, no tables: http://www.glish.com/css/7.asp
--
Rinze van Huizen
C-Services Holland b.v
Rinze,
I asked you in this thread a solution without setting it absolute, I find
absolute very bad to see.
>(Nicely non fixed dynamicly on a page of course)
I have searched a long time for something and use all kind of things to
solve it.
This is a very old not maintaned webside from me. http://huizen.ddsw.nl/bewoners/ligthert/
It is in Dutch, for you know problem, see how I play with the pictures.
Cor
"C-Services Holland b.v." <cs*************@csh4u.nlschreef in bericht
news:Lu******************************@zeelandnet.n l...
Cor Ligthert [MVP] schreef:
>Rinze,
In your first example it is bound left to the top of the page.
In your Div sample you can change AFAIK the only the hight place.
And that is it,
You can of course use containers, as you see them than at the end as source, than you are mostly looking again to tables. <Table><tr><td>
(If you look at the VB-Tips on our webpage, that is that a fixed part, what can be placed everywhere and will be always there, but that cannot be the meaning).
Cor
Cor,
I suggest you look into CSS. You can use that to layout your site without
using tables. It's also possible to position an image just using the image
tag, for example:
<img src="urltoimage" width="100" height="100" border="0" style="position:
absolute; top: 56px; right: 80px" />
Or create layers with the div tag and move them around the webpage.
There's so much you can do with CSS you really don't need tables anymore.
Benefit of this is that if you want to change your layout you only have to
change 1 file, the CSS file you include in your webpages.
example 3 columns, no tables: http://www.glish.com/css/7.asp
--
Rinze van Huizen
C-Services Holland b.v
Cor Ligthert [MVP] schreef:
Rinze,
I asked you in this thread a solution without setting it absolute, I find
absolute very bad to see.
>(Nicely non fixed dynamicly on a page of course)
It can be fixed, but as far as I know you can also use percentages in
divs. place images in divs and it's all dynamic. http://www.yourhtmlsource.com/styles...ivepositioning
--
Rinze van Huizen
C-Services Holland b.v This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ming |
last post by:
Hi All,
I want to write a PHP webpage which allows people to upload images (no
matter what formats) to me and at the same time converts any non-jpeg
image to JPEG.
Here's what I have:
...
|
by: Steve Holden |
last post by:
If nobody has a quick answer I'll go to the PIL list, but I'm having
problems with PIL JPEG support on Windows, and figured someone on c.l.py
might have solved this problem.
I built the Cygwin...
|
by: frankenberry |
last post by:
I have multi-page tiff files. I need to extract individual frames from the
multi-page tiffs and save them as single-page tiffs. 95% of the time I
receive multi-page tiffs containing 1 or more black...
|
by: bull.enteract |
last post by:
Ok, I start off with a bitmap image. I encode it as a jpeg and send it
across the network and pick it up on the other end. Now I have the
jpeg image on the other end as an arrray of bytes and I...
|
by: David Lauberts |
last post by:
Hi
Wonder if someone has some words of wisdom.
I have a access 2002 form that contains 2 graph objects that overlay each
other and would like to export them as a JPEG to use in a presentation....
|
by: Johann Blake |
last post by:
In my need to decode a JPEG 2000 file, I discovered like many that
there was no functionality for this in the .NET Framework. Instead of
forking out a pile of cash to do this, I came up with the...
|
by: rtilley |
last post by:
Hope it's not inappropriate to post this here.
Could someone critique my code? I have no Python programmers in my
office to show this to. The script works OK, but should I do it
differently? I...
|
by: Jack Wu |
last post by:
Hi
I've spent a good majority of my day trying to figure out how to have
PIL 1.1.5 working on my OSX 10.3.9_PPC machine. I'm still stuck and I
have not gotten anywhere. Could somebody please...
|
by: Smokey Grindel |
last post by:
I have a bitmap object I want to return as a JPEG image with a compression
set at 90% and progressive passes enabled, how can I do this in .NET 2.0?
Progressive passes are not necessary but the...
|
by: Joe Cool |
last post by:
I am attempting to add a function to an application I am working on to
modify the JPEG Comment in a Jpeg image file.
I can retrieve the JPEG Comment with no problem. The problem is
modifying it....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |