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
1
vote
2 answers

How do I render text along an arc in an image?

I have the following code in Delphi 7 to draw Copyright text along the curved edge of a DVD. We are using an old version of Graphics32. We are switching to Delphi XE5 with the latest code from Graphics32 and this code no longer compiles; in…
Hobo Joe
  • 181
  • 14
1
vote
2 answers

Need help converting Graphics32 Delphi sample to C++

USING BDS2006: I'm trying to convert the Graphics32 Resampler_ex example in C++, but i can't even understand what happens in some codes, or how to rewrite that code in C++. In that sample there's a combobox to choose what resampler to use: This is…
Parduz
  • 662
  • 5
  • 22
1
vote
3 answers

How to draw a TBitmap32 transparently on a TBitmap?

I am trying to draw a source image (GR32 TBitmap32) that contains some fully transparent and also partially transparent pixels on a normal (TBitmap) image while preserving the transparency in the source image. I use…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
1
vote
1 answer

Draw a transparent Ellipse in a layer

I have a TImgView32(named CityMap) on my form and an image is loaded on it. Now I create a layer(TBitmapLayer) and draw a circle using Canvas.Ellipse of a TBitmap32 variable like the following: procedure TfrmMain.Button1Click(Sender: TObject); var …
SAMPro
  • 1,068
  • 1
  • 15
  • 39
1
vote
0 answers

Combining rotating and scaling functions of Graphics32 components

Good day. I wanted to incorporate two functions to manipulate a bitmap image. I wanted to rotate and scale the same image. What I did was to use one of the given examples, the TRotLayer. My plan was to alter the TRotLayer. Here's what I…
jhodzzz
  • 83
  • 1
  • 7
1
vote
1 answer

Is there any .NET dll around that does GIMP, or some other image program job?

I would like to know if there is any dll that I could use to import into my C# project to handle images. What I am expecting to do is: Increase/Decrease brigth, exposure Put two photos at the same position and use the "multiply" functionality like…
Pedro Matos
  • 387
  • 2
  • 14
1
vote
1 answer

Inplace conversion of 24bpp bitmap to 32bpp

In Delphi 7, I have to deal with pretty large 24bpp bitmaps (several 100 MB). Since I want to use the Graphcis32 library for further processing, they have to be converted to 32bpp (TBitmap32). The LoadFromFile method of TBitmap32, however, creates a…
wp
0
votes
0 answers

Problem displaying rotated text with Graphics32 in Delphi

I have tried using the RenderText function to display rotated text on a TImage32 using the following code: Image.Bitmap.Font.Orientation := 200; Image.Bitmap.RenderText(100, 100, 'PRINT TEXT AT 20 DEGREE', 3, Color32(0, 0, 0, 255)); But the…
Normand P.
  • 33
  • 5
0
votes
0 answers

problem with transparency after unchecking Link with runtime packages and Link with Dynamic RTL

I am using graphicex lib to support transparency in graphics32 library (I am using RAD Studio 11, C++ builder). Everything works well - except - when I try to compile and run app with unchecking of the items ("Link with runtime packages" =false and…
0
votes
0 answers

Graphics32. Disabling the scaling (change) of the RubberbandLayer

Good afternoon. Sorry for my English. I am using RAD Studio XE. In Graphics32, I need to completely disable the RubberbandLayer of the eraser. Tried ways to disable gum scaling. I can not. Tried RBLayer.Scaled: = False; It doesn't work for me. I use…
Alexandr
  • 1
  • 1
0
votes
1 answer

Broken scrollbars in Graphics32's TImgView32

I want to display images on TImgView32 but the scrollbars are clearly broken. When I zoom in, resize window, then zoom out I can see this: I have set ImgView321.ScrollBars.Visibility to svAuto so there should not be any scrollbars now. Here's my…
Tom
  • 2,962
  • 3
  • 39
  • 69
0
votes
0 answers

Is it possible to convert TBitmap32 to TBitmap without copying pixels?

Can I convert TBitmap32 object to TBitmap (pf32bit) object without copying pixels? I found 2 methods to copy TBitmap32 to TBitmap without visibly copying pixels but maybe there are pixels being copied under the hood. Or maybe one method is better…
Tom
  • 2,962
  • 3
  • 39
  • 69
0
votes
1 answer

Graphics32: TBitmap32 and error "Can't allocate the DIB handle"

I am trying to make a new TBitmap32 object: Bmp32 := TBitmap32.Create; Bmp32.SetSize(20000,20000); and I get error: "Can't allocate the DIB handle" How can I fix this problem? 20K x 20K bitmap is not that big. It's smaller than 1.5 GB.
Tom
  • 2,962
  • 3
  • 39
  • 69
0
votes
1 answer

Graphics32 Simple drawing layer scaling

For a learning purpose, I am trying to build an application, that behaves basically the same way, as a Graphics32 example application "ImgView_Layers" and than I am making slight changes. Now I am stuck on a problem with simple drawing layers. I…
j.kaspar
  • 751
  • 1
  • 11
  • 29
0
votes
1 answer

How to correctly resize transparent image in graphisc32?

Image is bmp with olive transparent color. type TForm1 = class(TForm) ImageList: TImageList; // MainMenu: TMainMenu; //Standart parameters MenuItem: TMenuItem; // procedure FormCreate(Sender: TObject); ... function…
Andrey
  • 65
  • 5