Log of /trunk/graf2d/postscript/inc/TImageDump.h
Parent Directory
Revision
23140 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 11 11:01:39 2008 UTC (6 years, 9 months ago) by
rdm
File length: 2848 byte(s)
Diff to
previous 22872
move the following directories to "graf2d":
asimage, freetype, gpad, graf, postscript, qt, win32gdk, x11, x11ttf
move the following directories to "graf3d":
eve, ftgl, g3d, gl, x3d
Revision
22872 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 27 16:59:12 2008 UTC (6 years, 9 months ago) by
couet
Original Path:
trunk/postscript/inc/TImageDump.h
File length: 2848 byte(s)
Diff to
previous 20882
- From Onuchin:
In batch, when a picture was saved in a binary file (gif for instance) from
an image containing more than one pad, only the first pad was saved. The
following macro demonstrates the problem: ccc2.gif was wrong compared to
ccc1.gif.
{
gROOT->SetBatch();
TCanvas *c = new TCanvas;
c->Divide(1,2);
TH1F *h = new TH1F("gaus", "gaus", 100, -5, 5);
h->FillRandom("gaus", 10000);
c->cd(1); h->Draw();
c->cd(2); h->Draw("c*");
c->Print("ccc1.gif");
TImage *img = TImage::Create();
img->FromPad(c);
img->WriteImage("ccc2.gif");
}
Revision
11911 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 30 22:38:39 2005 UTC (9 years, 7 months ago) by
rdm
Original Path:
trunk/postscript/inc/TImageDump.h
File length: 2679 byte(s)
Diff to
previous 11846
From Valeriy:
TGPicture:
- fix deallocation autogenerated disabled pictures. That allows to fix
seg. violation after running $ROOTSYS/test/stress reported by Markus Frank.
An important comment was added to constructor
TGPicture(const char *name, Pixmap_t pxmap, Pixmap_t mask)
"both pixmaps pxmap and mask must be unique (not shared)"
- new method TGPicturePool::GetPicture(const char *name, char **xpm) added
that allows to create pictures from in-memory XPM array
Example:
#include "myicon.xpm" // contains static char** myicon {..} array
const TGPicture *pic = gClient->GetPicturePool()->GetPicture("myicon",
myicon);
TGButton:
- new method SetEnablled added which allows to activate/deactivate
enabled/disabled state of button
TASImage/TImage:
- Few new vector graphics methods added:
DrawCubeBezier, DrawStraightEllips, DrawCircle, DrawEllips,DrawEllips2
ToGray method, which allows to convert RGB image to Gray image
TImageDump:
- open circle polymarkers are implemented
Revision
11793 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun May 15 05:53:45 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/postscript/inc/TImageDump.h
File length: 2601 byte(s)
Diff to
previous 11744
From Valeriy Onuchin:
- TASImage class:
o new method GetImageBuffer is introduced. It returns in-memory buffer
compressed according to the image type.
Buffer must be deallocated after usage.
This method can be used for sending images over the network.
o new method SetImageBuffer introduced. It creates image from compressed
buffer. Supported formats:
PNG - by default
XPM - two options exist:
1. xpm as a single string (raw buffer). Such a string
is returned by GetImageBuffer method.
For example:
char *buf;
int sz;
im1->GetImageBuffer(&buf, &int, TImage::kXpm); /*raw buffer*/
TImage *im2 = TImage::Create();
im2->SetImageBuffer(&buf, TImage::kXpm);
2. xpm as an array of strigs (preparsed)
For example:
char *xpm[] = {
"64 28 58 1",
" c #0A030C",
". c #1C171B"
...
TImage *im = TImage::Create();
im->SetImageBuffer(xpm, TImage::kXpm);
o custom Streamer was implemented. That allows to save images in ROOT files.
Image's thumbnail is also saved into a file.
o galaxy_image.C tutorial is modified according to new saving schema.
o new demo file gallery.root added to tutorials. It contains thumbnailed
and browsable pictures produced by some ROOT tutorials.
o fix bug im TASImage::DrawRectangle methods. Thanks to Thomas Bretz
for reporting it.
- TKey class.
Possibility to save thumbnail/icon as XPM string along with object added.
Currently such mechanism is used for saving thumbnailed images.
- TGPicture. Platform-dependent code was removed. Now TGPictures
are created by TImage objects.
- TRootBrowser classes. Possibility to show objects with dynamically created
icons added.
- numerous bug fixes in libAfterImage library.
Revision
11744 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 6 14:55:48 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/postscript/inc/TImageDump.h
File length: 2737 byte(s)
Diff to
previous 11729
From Valeriy Onuchin:
1. TVirtualPS - 3 "abstract" methods added
void *GetStream() const
returns pointer to "backend", which is file stream for
TPostScript, TPDF, TSVG classes, and is TImage object for TImageDump
class.
void SetType(Int_t) , GetType() const
setter/getter methods
2. TImageDump
If type is 114 - do not write to file on delete or Close()
3. TASImage
- more 10-20% gain achived in drawing speed
- fix problems in painting image in batch mode, e.g.
$root -b
root[] .x rose_image.C
root[] c1->Print("c1.png")
Revision
11693 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Fri Apr 29 16:16:35 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/postscript/inc/TImageDump.h
File length: 2507 byte(s)
From Valeriy Onuchin:
- new class TImageDump derived from TVirtualPS is introduced.
That allows to save canvas in GIF, JPEG etc, image formats in batch mode.
This patch is introduced to check the portability of the code on all
platforms. More additions coming soon to:
- text rotation
- correct text alignment (y-centered)
- 1pixel frame drawing
- fix saving in PNG format
- speed optimisation
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.