Questions tagged [graphics32]

Graphics32 is a library designed for fast 32-bit graphics handling on Delphi.

Graphics32 is is licensed under the terms of the Mozilla Public License.

Resources:

76 questions
4
votes
2 answers

How to FillRect using a blend mode like multiply, and not just a simple transparency

I'm using the Delphi library Graphics32 to draw an audio graphic on the screen, and then represent a series of periods in the audio. The graph is quite simple: a black background, with the audio waveform filled with a light gray color. The periods…
Rodrigo Gómez
  • 1,079
  • 8
  • 24
4
votes
1 answer

Delphi - Graphics32, draw antialiased rounded rectangle

How can I draw an anti-aliased rounded corners rectangle using Graphics32? I managed to make a normal rectangle with TPolygon onto the bitmap32 canvas, but I cant find any reference to drawing rounded corners. Would appreciate some code.
hikari
  • 3,393
  • 1
  • 33
  • 72
3
votes
1 answer

Delphi graphics32 delete selected layer

graphics32 is a very nice library, but I am having trouble figuring out how to use it properly. For instance LAYERS, they are an awesome feature. I can add layers to an ImageView, select them, move them around, resize them, but, if I want to delete…
user1137313
  • 2,390
  • 9
  • 44
  • 91
3
votes
1 answer

Color alpha channel is not transparency completely

I've just draw an anti aliased line in a BitmapLayer with this code: procedure TForm4.Button1Click(Sender: TObject); var BL: TBitmapLayer; begin BL:= TBitmapLayer.Create(ImgView.Layers); LayerPos:= Point(100, 100); CanvasWidth:= 100; …
SAMPro
  • 1,068
  • 1
  • 15
  • 39
3
votes
2 answers

Delphi freeze on Form close with custom component

I have developed a component to implement pan and zoom functionality for Graphics32 based ImgView32s. One can drop the component next to an TImgView32, set the Image view property of my component and all is good, and working as expected. However,…
iamjoosy
  • 3,299
  • 20
  • 30
2
votes
2 answers

Creating a Clipping Mask using Graphics32

I'm using Graphics32 for image processing. Looking at its capabilities, it strikes me that I've yet to see a proper implementation of a clipping mask. I do see the term "clipping" pop up here and there, but it seems to refer to something…
Thijs van Dien
  • 6,516
  • 1
  • 29
  • 48
2
votes
2 answers

How to create Bitmap32 from Bits array?

I have a function that returns a pointer to the memory where the image is stored as Bitmap32.Bits: function FileToMemoryAsBitmap32Bits: pointer; var bmp32: TBitmap32; wic: TWICImage; begin Result := nil; bmp32 := TBitmap32.Create(); …
LuFang
  • 191
  • 3
  • 12
2
votes
1 answer

TBitmap32.Assign() abnormal behavior

What's wrong with Graphics32 TBitmap32.Assign()? Why is the transparency of the original image not preserved for TBitmap32, while for TBitmap everything is fine? Here is a sample code: procedure TForm1.Button8Click(Sender: TObject); var bmp32:…
LuFang
  • 191
  • 3
  • 12
2
votes
1 answer

GIF animation TImage/Timage32

The goal is to have animated GIFs playing inside image components with good image quality even after resizing one of the image components. TImage example This is the resized TImage, very bad image quality but flawless animation: // GIF =…
pskiebe
  • 93
  • 6
2
votes
2 answers

Graphics32 fill polygon with hatched pattern

I am trying to convert a delphi XE4 application to use the Graphics32 libraries for drawing rather than the standard delphi drawing methods. One thing I do is draw an icon that contains a small ellipse with diagonal cross hatch pattern. The icon…
DanAsh
  • 67
  • 2
2
votes
2 answers

how to retrieve exact text width for RenderText in Graphics32

I think my question is clear enough, but I explain more. Simply, when we are using AntiAlias on RenderText procedure, the value gotten within TextWidth function is not correct. What can I do to get the right text width?
Javid
  • 23
  • 3
2
votes
2 answers

What is the best way to render mixed vectorial and bitmap images in Delphi XE

I would like to be able to render a bitmap image superimposed with boundaries between pixels (the color of the boundary results from a home made routine). On zoom and pan the tickness of the boundary should remain the same. Here is an example image:…
2
votes
2 answers

Delphi Graphics32 relative mouse position (to the layer)

I have a ImgView32, that is anchored to all form margins. The form is maximized. The bitmap of ImgView is not fixed (it can be of different sizes) I am trying to draw a line on a transparent layer using ther code from this question:Drawing lines on…
user1137313
  • 2,390
  • 9
  • 44
  • 91
2
votes
1 answer

Delphi Graphics32 transparent layer draw line

I am trying to add a layer to an ImgView32, and on that layer I want to draw a line. But, I want that layer to be transparent, so it wont cover all the layers added previously. So I want to obtain: layer 1 -> image layer 2 -> another image …
user1137313
  • 2,390
  • 9
  • 44
  • 91
2
votes
2 answers

Delphi Graphics32 how to draw a line with the mouse on a layer

Can anybody help me convert this great method of dynamically drawing a line (Photoshop style drawing line with delphi) to Graphics32? I mean, I want to have a ImgView, add a new layer to it, then perform these methods on the layer instead of the…
user1137313
  • 2,390
  • 9
  • 44
  • 91