Home > Back-end >  Dynamically add pictures, complete number
Dynamically add pictures, complete number

Time:09-26

Dynamically add images, each image by adding the order of the numbered from 1 began to add, if you remove any, after a number can be automatically updated according to the order of such procedure how to do, have can load images, only number

CodePudding user response:

Thinking: suppose the database operation;
1. Total number N of access to database and the serial number of the last record M
2. Add records, N=M, if equal new record for M + 1, if not equal from the first record cycle whether rows R1 and record the M1 are equal, if equal to ignore, not equal Numbers for R1
(3) to be implemented in the process of database storage,

CodePudding user response:

Create a dynamic array, specify the address of the Image by pointer type, reference Image picture,

Or create a pointer chain structure, direct Image,

Pointer to the serial number, serial number, or dynamic array is the serial number of it,

CodePudding user response:

Delete the dynamic loading is program display picture?

Using dynamic array to save the picture address, to do the array subscript image sequence number




CodePudding user response:

The
reference 3 floor yangb0803 response:
is the dynamic loading program delete display picture?

Using dynamic array to save the picture address, to do the array subscript image sequence number

Can you write the code about here, I consider, thank you

CodePudding user response:

It is better to add into the database, such as easy to access

CodePudding user response:

refer to the second floor lyhoo163 response:
create dynamic array, and specify the address of the Image by pointer type, reference Image picture,

Or create a pointer chain structure, direct Image,

Pointer to the serial number, serial number, or dynamic array is its number,


Thank you, I tried, I found I was in. Bitmap. Canvas. The TextOut (47, 30, number), then delete an image, and no update

CodePudding user response:

CodePudding user response:

LZ is in direct write the code as a watermark in the picture?

CodePudding user response:

refer to the eighth floor yyfhz response:
LZ is in direct write the code as a watermark in the picture?



Yes, can you guide me, where is the problem, thank you

CodePudding user response:

refer to 6th floor baidu_27779867 response:
thank you, I tried to find me. Bitmap. Canvas. The TextOut (47, 30, number), then deleted after a picture, there is no update


After you delete a picture, after you delete the pictures of all the number of the picture, you need to refresh a frontal.

You don't refresh again, such as in the list, pictures in the middle position, even after the change, but the display number, or did not move...

CodePudding user response:

references 9 f baidu_27779867 response:
Quote: refer to the eighth floor yyfhz response:

LZ is in direct write the code as a watermark in the picture?



Yes, can you guide me, where is the problem, thank you

If LZ is stored in the database of number image is original image and watermark, then add in no way out, easy to get rid of difficult
If LZ is stored in the database is the original image, and then displayed on the interface for dynamic synthesis, when the database update number, the corresponding images need to be dynamically synthesis and refresh on the interface,

CodePudding user response:

O how do you write the code
  • Related