社区应用 最新帖子 精华区 社区服务 会员列表 统计排行
  • 1493阅读
  • 0回复

[分享]请教大家制作相册如何控制相片的显示!

楼层直达
级别: 光盘见习
发帖
2
飞翔币
335
威望
13
飞扬币
1312
信誉值
0
各位好!我用AutoPlay Media Studio制作电子相册时,遇到显示相片时,超过相册显示平台范围的相片,不能全部显示。如何用代码解决?谢谢大家,恳请熟悉此软件的各位网友教教我,谢谢!
网上找的全局代码如下:(请教大家是否可以调整红色代码部分?谢谢)

-- nCurrentImagePosition keeps track of which image
-- in the table is currently being displayed. This
-- is used on the previous and next image buttons
nCurrentImagePosition = 1;

-- tImageFiles holds all of the paths to the image
-- files loaded from the folder specified by the user
tImageFiles = {};

-- LoadImage first checks if the requested index is
-- within the allowed range, and then loads the specified
-- image file into the image object.
function LoadImage(nImagePosition)
-- Check if requested index is within the allowed range
-- (If it isn't, reset the position)
if nImagePosition < nMinImagePosition then
-- Reset the position to the maximum value
nImagePosition = nMaxImagePosition;
elseif nImagePosition > nMaxImagePosition then
-- Reset the position to the minimum value
nImagePosition = nMinImagePosition;
end

-- Load the specified image file from the global table
Image.Load("Image1", tImageFiles[nImagePosition]);

-- Keep track of which image index was loaded
nCurrentImagePosition = nImagePosition;
end