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
2
votes
0 answers

Delphi Graphics32 - edit layer, erase parts of TBitmap32 (layer)

Is it possible to edit a layer's image? I mean, having a TImgView with multiple selectable layers, I would like to know if it is possible to select one layer (rubber-band and all), and for example click a button in the menu, and the mouse would turn…
user1137313
  • 2,390
  • 9
  • 44
  • 91
2
votes
1 answer

Does graphics32 works in c++ builder XE2?

I have installed graphics32 1.9.1 1581, compiled and added the GR32_DSGN_RSXE2 package. But it has no .h files and your components and components folders are visible only in Delphi projects. Its implementation for C++ has stoped in builder 6? There…
sgm
  • 196
  • 3
  • 14
1
vote
0 answers

Graphics32: conversion from GR32_PolygonsOld

I have been using the GR32 library for a few years, holding onto an old compatibility unit GR32_PolygonsOld that's no longer maintained. At some point they heavily modified the Polygons unit and some things no longer exist like TAntialiasMode and…
hikari
  • 3,393
  • 1
  • 33
  • 72
1
vote
1 answer

How to add Canvas to a custom class?

Graphics32 class TBitmap32 has a canvas so everything that can draw on Canvas can draw on TBitmap32. I want to create my own bitmap class not derived from TBitmap nor TBitmap32 and also have a Canvas. I could just fake it by using a TBitmap with…
Tom
  • 2,962
  • 3
  • 39
  • 69
1
vote
0 answers

How to fix the "Incompatible types: 'PPointer' and 'Pointer'" Delphi compiler error?

When building a program that uses the Graphics32 library (the old 1.9.1 version) with Delphi XE4 (targeting Win32, if it matters), I got the following compiler error: [dcc32 Error] GR32_LowLevel.pas(1240): E2010 Incompatible >types: 'PPointer' and…
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
1
vote
1 answer

Changing Graphics32's TImgView32's resampler kernel on the fly

I want to change resampling kernel of Graphics32's TImgView32 on the fly. However there is no visible difference. Here's the code: procedure TForm1.FormCreate(Sender: TObject); begin ImgView321.Bitmap.LoadFromFile('1.bmp'); end; procedure…
Tom
  • 2,962
  • 3
  • 39
  • 69
1
vote
0 answers

Graphics32 and VCL Styles

I am using the Graphics32 TColorPickerGTK component, unfortunately, it doesn't support VCL Styles. My first thought was to clear the FBuffer in the PaintColorPicker() method as such, FBuffer.Clear( Color32( StyleServices.GetStyleColor( scWindow ) )…
GrooverMD
  • 131
  • 3
  • 12
1
vote
2 answers

Delphi TImage32 - how to make the component invisible if no picture is loaded?

If you place a normal TImage component on a form or panel over other components >> it is invisible at runtime as long no picture is loaded. So other things under it are visible. But TImage32 is painting a gray box by default. How do I make the…
SzakiLaci
  • 347
  • 1
  • 16
1
vote
1 answer

Png Transparency in graphics32, Builder XE6

I would like to use Png images while working in C++ Builder RAD Studio XE6. I am using graphics32 lib and I managed to install runtime and designtime packages. I can put the TImage32 component on my form, then I load the png image in TImage32, but…
1
vote
1 answer

Modal dialog does not return focus to application

I have a custom control derived from TPanel named TTestCtrl. It holds a TImage32 (from Graphics32). When the user double clicks on the image, I show a message. The problem is that after I close the message, the focus is not returned back to the main…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
1
vote
0 answers

Is there a way around the Graphics32 16 bit math limitations?

I have a CAD application which uses Graphics32 (1.9.1) to draw the polygons using the PolygonTS drawing routines. Things work OK when everything is on canvas, the problem comes when zooming into objects. I can check if all points of a polygon are…
Andy k
  • 1,056
  • 1
  • 11
  • 22
1
vote
1 answer

How to work with non-visible TImage32

I try to make use of a TImage32 to combine several layers with positions and transparency etc. So I create in runtime a TImage32, set parent to nil, load from file a bitmap and load from file a layer on top of that bitmap. Now I want to save the…
Willem
  • 61
  • 4
1
vote
1 answer

Delphi - Graphics32, draw multiple transparent PNG over JPG as watermak

After read Graphics32 documentation I can't find a objetive example of use layers. I just want to compose the following Image: Layer 1 - Background Image (In JPG) (800x600) Layer 2 - Transparent PNG as a frame border (800x600) Layer 3 - Transparent…
Ragen Dazs
  • 2,115
  • 3
  • 28
  • 56
1
vote
1 answer

Graphics32 Layer Rotation

I am trying to combine the RotationLayer with a regular TBitmapLayer in order to be able to use an ImgView32 layer for all it can be. So my thoughts were: I have a TBitmapLayer (I need it to be BitmapLayer because I am doing with it more than just…
user1137313
  • 2,390
  • 9
  • 44
  • 91
1
vote
1 answer

Graphics32 - saving transparent drawing layer to png

I draw a dotted line on a layer of an ImgView32. Later, I want to save each layer as transparent PNGs. For any other layer that I have, the saving works just fine. But for the drawing layer, it does not. In order to make the question simpler to…
user1137313
  • 2,390
  • 9
  • 44
  • 91