Custom component
I try to create a custom component inherited from TfrxView with a 2D barcode bitmap (TBitmap) in it.
How do I paint the barcode bitmap on the canvas in the Draw procedure?
Currently I have this:
Because it is a 2D barcode, I want the bitmap not strechted and only scale with the ScaleX and ScaleY values. Otherwise the barcode will get corrupted.
Can somebody help me with this?
How do I paint the barcode bitmap on the canvas in the Draw procedure?
Currently I have this:
procedure TfrxDataMatrixBarcode.Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX,
  OffsetY: Extended);
begin
  if FNeedUpdate then
  begin
    UpdateBarcodeBitmap;
    FNeedUpdate := False;
  end;
  BeginDraw(Canvas, ScaleX, ScaleY, OffsetX, OffsetY);
  DrawBackground;
  //How to draw a TBitmap here?
  DrawFrame;
end;
Because it is a 2D barcode, I want the bitmap not strechted and only scale with the ScaleX and ScaleY values. Otherwise the barcode will get corrupted.
Can somebody help me with this?