Vcl.Imaging.jpeg.TJPEGImage.Assign

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

procedure Assign(Source: TPersistent); override;

C++

virtual void __fastcall Assign(System::Classes::TPersistent* Source);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Imaging.jpeg.pas
Vcl.Imaging.jpeg.hpp
Vcl.Imaging.jpeg TJPEGImage

Description

Copies the jpeg image object and creates a new reference to the internal data source object.

Assign copies the jpeg image contained in Source to the jpeg image object. Assign then calls the inherited Assign. Assign creates a new link to the internal jpeg data source by which the jpeg image objects do reference counting and handle sharing.

Tip: To draw on a jpeg image, Assign the jpeg image to a bitmap, and then draw on that.

Note: An object of one type can always be assigned to another object of the same type. Also, the Source can be of type TPicture if the Graphic property of the picture is a jpeg image or a bitmap.

See Also

Code Examples